예제 #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" });
     }
 }
예제 #2
0
 public RateTopicModel(RequirementsDetailsModel req)
 {
     this.Topic  = req;
     this.Rating = new UserRatingModel(req.RevisionId);
 }