public ActionResult PatientConsent(PatientConsentMain patientConsentMain)
 {
     LoadPatients(Request.Form["RdoLocation"]);
     if (!string.IsNullOrEmpty(patientConsentMain.EmployeeId))
     {
         var consentFormSvcClient = new ConsentFormSvcClient();
         if (consentFormSvcClient.IsValidEmployee(patientConsentMain.EmployeeId))
         {
             ViewBag.Loggedin = true;
             var patientDetails = consentFormSvcClient.GetPatientfromLocation(patientConsentMain.BHELocation ? "BHE" : "BHW");
             foreach (DataRow patientDetail in patientDetails.Rows)
             {
             }
             if (string.IsNullOrEmpty(patientConsentMain.SelectedPatientID))
             {
             }
         }
         else
         {
             patientConsentMain.ErrorInfo = "Invalid employee id entered!";
             ResetIndexView(patientConsentMain);
         }
     }
     patientConsentMain.PatientsList = new SelectList(new string[0]);
     patientConsentMain.ConsentFormList = new SelectList(new string[0]);
     return View("Index", patientConsentMain);
 }
 private void LoadPatients(string patientLocation)
 {
     if (!string.IsNullOrEmpty(patientLocation))
     {
         var consentFormSvcClient = new ConsentFormSvcClient();
         ViewBag.Patients = consentFormSvcClient.GetPatientfromLocation(patientLocation).Rows;
     }
 }