// fetch by Search key into current object // links: // crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete // docLink: http://sql2x.org/documentationLink/ad2dd952-e3ec-471a-9e34-f5fc965b8b37 // parameters: // AircraftDocumentTypeName: key of table CrudeAircraftDocumentTypeRefData public CrudeAircraftDocumentTypeRefModel FetchByAircraftDocumentTypeName(string aircraftDocumentTypeName) { var dataAccessLayer = new CrudeAircraftDocumentTypeRefData(); var model = new CrudeAircraftDocumentTypeRefModel(); dataAccessLayer.FetchByAircraftDocumentTypeName(aircraftDocumentTypeName); DataToModel(dataAccessLayer, model); return(model); }
public CrudeAircraftDocumentTypeRefContract FetchByAircraftDocumentTypeName(string aircraftDocumentTypeName) { var dataAccessLayer = new CrudeAircraftDocumentTypeRefData(); var contract = new CrudeAircraftDocumentTypeRefContract(); dataAccessLayer.FetchByAircraftDocumentTypeName(aircraftDocumentTypeName); DataToContract(dataAccessLayer, contract); return(contract); }