Пример #1
0
 public IActionResult AddNewReview(Review review)
 {
     if (ModelState.IsValid)
     {
         repository.AddNewReview(review);
         return(RedirectToAction(nameof(Index)));
     }
     ViewBag.allCategories = repository.Categories;
     return(View());
 }