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