private CharacterPromptService CreateCharacterPromptService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new CharacterPromptService(userId); return(service); }
// GET: CharacterPrompt public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new CharacterPromptService(userId); var model = service.GetCharacterPrompts(); return(View(model)); }