// fetch by Primary key into current object // links: // crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete // docLink: http://sql2x.org/documentationLink/fdcc33b4-08f1-43c3-ae28-95fbf029c3bd // parameters: // CrudeServiceHotelData: primary key of table CrudeServiceHotelData public CrudeServiceHotelModel FetchByServiceHotelId(System.Guid serviceHotelId) { var dataAccessLayer = new CrudeServiceHotelData(); var model = new CrudeServiceHotelModel(); dataAccessLayer.FetchByServiceHotelId(serviceHotelId); DataToModel(dataAccessLayer, model); return(model); }
// fetch by Primary key into current object // links: // crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete // docLink: http://sql2x.org/documentationLink/bbab4791-c9e7-49bf-90d5-fca19b1fedaa // parameters: // serviceHotelId: primary key of table service_hotel public CrudeServiceHotelContract FetchByServiceHotelId(System.Guid serviceHotelId) { var dataAccessLayer = new CrudeServiceHotelData(); var contract = new CrudeServiceHotelContract(); dataAccessLayer.FetchByServiceHotelId(serviceHotelId); DataToContract(dataAccessLayer, contract); return(contract); }