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:
        //  BookingEventTypeName: key of table CrudeBookingEventTypeRefData
        public CrudeBookingEventTypeRefModel FetchByBookingEventTypeName(string bookingEventTypeName)
        {
            var dataAccessLayer = new CrudeBookingEventTypeRefData();
            var model           = new CrudeBookingEventTypeRefModel();

            dataAccessLayer.FetchByBookingEventTypeName(bookingEventTypeName);
            DataToModel(dataAccessLayer, model);

            return(model);
        }
        public CrudeBookingEventTypeRefContract FetchByBookingEventTypeName(string bookingEventTypeName)
        {
            var dataAccessLayer = new CrudeBookingEventTypeRefData();
            var contract        = new CrudeBookingEventTypeRefContract();

            dataAccessLayer.FetchByBookingEventTypeName(bookingEventTypeName);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }