C# Class Database.DAO.TravelOfferDao

Exibir arquivo Open project: rechc/KinectMiniApps

Public Methods

Method Description
Save ( TravelOffer offer ) : void
SelectAllOffers ( ) : List
SelectAllTopOffers ( ) : List
SelectById ( int offerId ) : TravelOffer
SelectOfferyByCategory ( CategoryEnum category ) : List
SelectRandomTopOffer ( ) : TravelOffer

Private Methods

Method Description
CreateDefaultObject ( ) : TravelOffer
Insert ( ) : void
IsNew ( ) : bool
Update ( ) : void

Method Details

Save() public method

public Save ( TravelOffer offer ) : void
offer TravelOffer
return void

SelectAllOffers() public method

public SelectAllOffers ( ) : List
return List

SelectAllTopOffers() public method

public SelectAllTopOffers ( ) : List
return List

SelectById() public method

public SelectById ( int offerId ) : TravelOffer
offerId int
return TravelOffer

SelectOfferyByCategory() public method

public SelectOfferyByCategory ( CategoryEnum category ) : List
category CategoryEnum
return List

SelectRandomTopOffer() public method

public SelectRandomTopOffer ( ) : TravelOffer
return TravelOffer