private EmotionalService CreateEmotionalService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new EmotionalService(userId); return(service); }
// GET: Emotional public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new EmotionalService(userId); var model = service.GetEmotionals(); return(View(model)); }