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

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