Exemple #1
0
 public IActionResult SaveReview(ReviewModel model)
 {
     sessionsRepository.AddReview(model.SessionId,
                                  new Review
     {
         Content = model.Content,
         Rating  = model.Rating,
         Id      = Guid.NewGuid()
     });
     return(RedirectToAction("Reviews", "Presentation", new { sessionId = model.SessionId }));
 }