// 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: // CrudeBookingPassengerData: primary key of table CrudeBookingPassengerData public CrudeBookingPassengerModel FetchByBookingPassengerId(System.Guid bookingPassengerId) { var dataAccessLayer = new CrudeBookingPassengerData(); var model = new CrudeBookingPassengerModel(); dataAccessLayer.FetchByBookingPassengerId(bookingPassengerId); 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: // bookingPassengerId: primary key of table booking_passenger public CrudeBookingPassengerContract FetchByBookingPassengerId(System.Guid bookingPassengerId) { var dataAccessLayer = new CrudeBookingPassengerData(); var contract = new CrudeBookingPassengerContract(); dataAccessLayer.FetchByBookingPassengerId(bookingPassengerId); DataToContract(dataAccessLayer, contract); return(contract); }