// 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: // AiportSupplierName: key of table CrudeAirportSupplierData public CrudeAirportSupplierModel FetchByAiportSupplierName(string aiportSupplierName) { var dataAccessLayer = new CrudeAirportSupplierData(); var model = new CrudeAirportSupplierModel(); dataAccessLayer.FetchByAiportSupplierName(aiportSupplierName); DataToModel(dataAccessLayer, model); return(model); }
public CrudeAirportSupplierContract FetchByAiportSupplierName(string aiportSupplierName) { var dataAccessLayer = new CrudeAirportSupplierData(); var contract = new CrudeAirportSupplierContract(); dataAccessLayer.FetchByAiportSupplierName(aiportSupplierName); DataToContract(dataAccessLayer, contract); return(contract); }