Beispiel #1
0
        private DiaperService CreateDiaperService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new DiaperService(userId);

            return(service);
        }
Beispiel #2
0
        // GET: Diaper
        public ActionResult Index()
        {
            var userID  = Guid.Parse(User.Identity.GetUserId());
            var service = new DiaperService(userID);
            var model   = service.GetDiaper();

            return(View(model));
        }