public static Data.Models.Review LibraryToData(Review libModel) { var dataModel = new Data.Models.Review() { Rating = libModel.Rating, Comment = libModel.Comment, User = libModel.User, RestaurantId = libModel.RestaurantId }; return(dataModel); }
public static Review DataToLibrary(Data.Models.Review dataModel) { var libModel = new Review() { Id = dataModel.Id, Rating = dataModel.Rating, Comment = dataModel.Comment, User = dataModel.User, Created = dataModel.Created, Modified = dataModel.Modified, RestaurantId = dataModel.RestaurantId }; return(libModel); }