Example #1
0
 public ActionResult UpdateReview(int id, Review review)
 {
     try
     {
         _reviewService.UpdateReview(review);
         return(RedirectToAction("GetReviewByBook", "Review", new { id = review.Book.Id }));
     }
     catch
     {
         return(View());
     }
 }
Example #2
0
 public void UpdateReview(Review review)
 {
     _dao.UpdateReview(review);
 }