public ActionResult RateProgram(ProgramRatingCreate model) { if (ModelState.IsValid) { var service = new RatingService(User.Identity.GetUserId()); if (service.CreateProgramRating(model)) { return(RedirectToAction(nameof(Index))); } } return(View(model)); }