コード例 #1
0
        private CharacterPromptService CreateCharacterPromptService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new CharacterPromptService(userId);

            return(service);
        }
コード例 #2
0
        // GET: CharacterPrompt
        public ActionResult Index()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new CharacterPromptService(userId);
            var model   = service.GetCharacterPrompts();

            return(View(model));
        }