Exemplo n.º 1
0
 public ActionResult Details(UserRatingModel model)
 {
     using (var ctx = new Entities())
     {
         ctx.SubmitRating(model.Id, Authentication.GetLoggedUser().UserID, model.Approved, model.Comments);
         Success("Obrigado por avaliar este tópico!");
         return RedirectToRoute("Cells", new { @action = "Index" });
     }
 }
Exemplo n.º 2
0
 public RateTopicModel(RequirementsDetailsModel req)
 {
     this.Topic  = req;
     this.Rating = new UserRatingModel(req.RevisionId);
 }