Ejemplo n.º 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:
        //  AirlineLanguageName: key of table CrudeAirlineLanguageData
        public CrudeAirlineLanguageModel FetchByAirlineLanguageName(string airlineLanguageName)
        {
            var dataAccessLayer = new CrudeAirlineLanguageData();
            var model           = new CrudeAirlineLanguageModel();

            dataAccessLayer.FetchByAirlineLanguageName(airlineLanguageName);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
Ejemplo n.º 2
0
        public CrudeAirlineLanguageContract FetchByAirlineLanguageName(string airlineLanguageName)
        {
            var dataAccessLayer = new CrudeAirlineLanguageData();
            var contract        = new CrudeAirlineLanguageContract();

            dataAccessLayer.FetchByAirlineLanguageName(airlineLanguageName);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }