Example #1
0
        // 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:
        //  AirportTerminalName: key of table CrudeAirportTerminalData
        public CrudeAirportTerminalModel FetchByAirportTerminalName(string airportTerminalName)
        {
            var dataAccessLayer = new CrudeAirportTerminalData();
            var model           = new CrudeAirportTerminalModel();

            dataAccessLayer.FetchByAirportTerminalName(airportTerminalName);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Example #2
0
        public CrudeAirportTerminalContract FetchByAirportTerminalName(string airportTerminalName)
        {
            var dataAccessLayer = new CrudeAirportTerminalData();
            var contract        = new CrudeAirportTerminalContract();

            dataAccessLayer.FetchByAirportTerminalName(airportTerminalName);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }