public void Update(RestaurantReviewUpdateModel entity)
        {
            RestaurantReview restaurantReview = new RestaurantReview
            {
                Id           = entity.Id,
                NameUser     = entity.NameUser,
                CommentDate  = entity.CommentDate,
                Order        = entity.Order,
                Comment      = entity.Comment,
                Rating       = entity.Rating,
                RestaurantId = entity.RestaurantId
            };

            _restaurantReviewRepository.Update(restaurantReview);
            _restaurantReviewRepository.Save();
        }
Пример #2
0
 public IActionResult Update([FromBody] RestaurantReviewUpdateModel review)
 {
     _restaurantReviewLogic.Update(review);
     return(Ok());
 }