public ActionResult PatientPractitionerRecords(string practitionerId, string patientId) { List <PractitionerRecordsDirectory> result = new List <PractitionerRecordsDirectory>(); PractitionerProcess process = new PractitionerProcess(); PractitionerBaseViewModel vm = new PractitionerBaseViewModel(); vm.AccId = Guid.Parse(practitionerId); vm.PatientBaseViewModel.AccId = Guid.Parse(patientId); result = process.PatientPractitionerRecords(vm); return(Json(result, JsonRequestBehavior.AllowGet)); }