private DiaperService CreateDiaperService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new DiaperService(userId); return(service); }
// GET: Diaper public ActionResult Index() { var userID = Guid.Parse(User.Identity.GetUserId()); var service = new DiaperService(userID); var model = service.GetDiaper(); return(View(model)); }