Esempio n. 1
0
        public ActionResult Index()
        {
            if (!User.IsInRole("Doctor"))
            {
                MedicalRecord model = new MedicalRecord();
                //model.prescriptions = new List<string>();
                try
                {
                    model = svc.getMedicalRecordsForPatient(User.Identity.Name);
                }
                catch (Exception) {
                }
                return(View("Medical", model));
            }

            return(View(Roles.GetUsersInRole("patient")));
        }