// 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:
        //  AirportFacilityName: key of table CrudeAirportFacilityData
        public CrudeAirportFacilityModel FetchByAirportFacilityName(string airportFacilityName)
        {
            var dataAccessLayer = new CrudeAirportFacilityData();
            var model           = new CrudeAirportFacilityModel();

            dataAccessLayer.FetchByAirportFacilityName(airportFacilityName);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Beispiel #2
0
        public CrudeAirportFacilityContract FetchByAirportFacilityName(string airportFacilityName)
        {
            var dataAccessLayer = new CrudeAirportFacilityData();
            var contract        = new CrudeAirportFacilityContract();

            dataAccessLayer.FetchByAirportFacilityName(airportFacilityName);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }