// 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:
        //  ImageFileName: key of table CrudeServiceHotelImageData
        public CrudeServiceHotelImageModel FetchByImageFileName(string imageFileName)
        {
            var dataAccessLayer = new CrudeServiceHotelImageData();
            var model           = new CrudeServiceHotelImageModel();

            dataAccessLayer.FetchByImageFileName(imageFileName);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
예제 #2
0
        public CrudeServiceHotelImageContract FetchByImageFileName(string imageFileName)
        {
            var dataAccessLayer = new CrudeServiceHotelImageData();
            var contract        = new CrudeServiceHotelImageContract();

            dataAccessLayer.FetchByImageFileName(imageFileName);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }