public ActionResult Index(Review model)
        {
            try
            {
                desi.AddReview(model);

                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
                return(RedirectToAction("Index", new { Error = ex.Message }));
            }
        }
Esempio n. 2
0
 public bool AddReview(Review movieReview)
 {
     return(_repo.AddReview(movieReview));
 }