public static ReviewClass ToWeb(DataLayer.Models.ReviewModel datareview) { var WebReview = new ReviewClass() { RevID = datareview.RevID, RestID = datareview.RestID, UserID = datareview.UserID, Restaurant = datareview.Restaurant, Review = datareview.Review, Rating = datareview.Rating, }; return(WebReview); }
public static DataLayer.Models.ReviewModel ToData(ReviewClass classreview) { var DataReview = new DataLayer.Models.ReviewModel() { RevID = classreview.RevID, RestID = classreview.RestID, UserID = classreview.UserID, Restaurant = classreview.Restaurant, Review = classreview.Review, Rating = classreview.Rating, }; return(DataReview); }