// 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: // CrudeAirportTerminalData: primary key of table CrudeAirportTerminalData public CrudeAirportTerminalModel FetchByAirportTerminalId(System.Guid airportTerminalId) { var dataAccessLayer = new CrudeAirportTerminalData(); var model = new CrudeAirportTerminalModel(); dataAccessLayer.FetchByAirportTerminalId(airportTerminalId); 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: // airportTerminalId: primary key of table airport_terminal public CrudeAirportTerminalContract FetchByAirportTerminalId(System.Guid airportTerminalId) { var dataAccessLayer = new CrudeAirportTerminalData(); var contract = new CrudeAirportTerminalContract(); dataAccessLayer.FetchByAirportTerminalId(airportTerminalId); DataToContract(dataAccessLayer, contract); return(contract); }