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"));
        }
 public ActionResult Edit(String patient)
 {
     if (User.IsInRole("Patient"))
     {
       patient = User.Identity.Name;
     }
     ViewData["patient"] = patient;
     MedicalRecord model = new MedicalRecord();
     //model.prescriptions = new List<string>();
     try
     {
         model = svc.getMedicalRecordsForPatient(patient);
     }
     catch (Exception)
     {
     }
     return View(model);
 }
示例#3
0
 public void updateMedicalecordsForPatient(String patient, MedicalRecord newRecords)
 {
     _provider.updateMedicalRecordsForPatient(patient, newRecords);
 }
 public void updateMedicalecordsForPatient(String patient, MedicalRecord newRecords)
 {
     _provider.updateMedicalRecordsForPatient(patient, newRecords);
 }