Beispiel #1
0
        public static Data.Review LibraryToDataRev(Review libModel)
        {
            var dataModel = new Data.Review()
            {
                ID       = libModel.ID,
                Rating   = libModel.Rating,
                CustName = libModel.CustName,
                RestID   = libModel.RestID
            };

            return(dataModel);
        }
Beispiel #2
0
        public static Review DataToLibraryRev(Data.Review dataModel)
        {
            var libModel = new Review()
            {
                ID       = dataModel.ID,
                Rating   = dataModel.Rating,
                CustName = dataModel.CustName,
                RestID   = dataModel.RestID
            };

            return(libModel);
        }