private DoMoAssServices CreateDoMoService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new DoMoAssServices(userId); return(service); }
// GET: DoMo public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new DoMoAssServices(userId); var model = service.GetDoMos(); return(View(model)); }