Esempio n. 1
0
        private NursingService CreateNursingService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new NursingService(userId);

            return(service);
        }
Esempio n. 2
0
        // GET: Nursing
        public ActionResult Index()
        {
            var userID  = Guid.Parse(User.Identity.GetUserId());
            var service = new NursingService(userID);
            var model   = service.GetNursingData();

            return(View(model));
        }