예제 #1
0
        private TwistPromptService CreateTwistPromptService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new TwistPromptService(userId);

            return(service);
        }
예제 #2
0
        // GET: TwistPrompt
        public ActionResult Index()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new TwistPromptService(userId);
            var model   = service.GetTwistPrompts();

            return(View(model));
        }