public CrudeServiceCarRentalContract FetchByCarName(string carName)
        {
            var dataAccessLayer = new CrudeServiceCarRentalData();
            var contract        = new CrudeServiceCarRentalContract();

            dataAccessLayer.FetchByCarName(carName);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }
Exemple #2
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:
        //  CarName: key of table CrudeServiceCarRentalData
        public CrudeServiceCarRentalModel FetchByCarName(string carName)
        {
            var dataAccessLayer = new CrudeServiceCarRentalData();
            var model           = new CrudeServiceCarRentalModel();

            dataAccessLayer.FetchByCarName(carName);
            DataToModel(dataAccessLayer, model);

            return(model);
        }