private CaseVoteService CreateCaseVoteService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new CaseVoteService(userId); return(service); }
// GET: CaseVote public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new CaseVoteService(userId); var model = service.GetCaseVotes(); return(View(model)); }