コード例 #1
0
ファイル: DiaperController.cs プロジェクト: maxjsigmon/DIPR
        private DiaperService CreateDiaperService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new DiaperService(userId);

            return(service);
        }
コード例 #2
0
ファイル: DiaperController.cs プロジェクト: maxjsigmon/DIPR
        // GET: Diaper
        public ActionResult Index()
        {
            var userID  = Guid.Parse(User.Identity.GetUserId());
            var service = new DiaperService(userID);
            var model   = service.GetDiaper();

            return(View(model));
        }