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);
        }
 public void Delete(ReviewClass reviewclass)
 {
     crud.DeleteReview(ToData(reviewclass));
 }
 public void Update(ReviewClass reviewclass)
 {
     crud.EditReview(ToData(reviewclass));
 }
 public void Add(ReviewClass reviewclass)
 {
     crud.AddReview(ToData(reviewclass));
 }