private NursingService CreateNursingService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new NursingService(userId); return(service); }
// GET: Nursing public ActionResult Index() { var userID = Guid.Parse(User.Identity.GetUserId()); var service = new NursingService(userID); var model = service.GetNursingData(); return(View(model)); }