private TwistPromptService CreateTwistPromptService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new TwistPromptService(userId); return(service); }
// GET: TwistPrompt public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new TwistPromptService(userId); var model = service.GetTwistPrompts(); return(View(model)); }