// 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: // CrudeAirlineContactMethodData: primary key of table CrudeAirlineContactMethodData public CrudeAirlineContactMethodModel FetchByAirlineContactMethodId(System.Guid airlineContactMethodId) { var dataAccessLayer = new CrudeAirlineContactMethodData(); var model = new CrudeAirlineContactMethodModel(); dataAccessLayer.FetchByAirlineContactMethodId(airlineContactMethodId); 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: // airlineContactMethodId: primary key of table airline_contact_method public CrudeAirlineContactMethodContract FetchByAirlineContactMethodId(System.Guid airlineContactMethodId) { var dataAccessLayer = new CrudeAirlineContactMethodData(); var contract = new CrudeAirlineContactMethodContract(); dataAccessLayer.FetchByAirlineContactMethodId(airlineContactMethodId); DataToContract(dataAccessLayer, contract); return(contract); }