public JsonResult GetPatientById(int patientId)
 {
     var patientRepository = new PatientRepository();
     var patient = patientRepository.GetPatientById(patientId);
     var userName = patientRepository.GetUserNameByPatientId(patientId);
     var patientViewEntity = new PatientViewEntity
     {
         PatientId = patient.PatientId,
         FirstName = patient.FirstName,
         MiddleName = patient.MiddleName,
         LastName = patient.LastName,
         City = patient.City,
         State = patient.State,
         Country = patient.Country,
         DOB = patient.DOB.Date.ToString("yyyy-MM-dd", System.Globalization.CultureInfo.GetCultureInfo("en-US")),
         Phone = patient.Phone,
         Address = patient.Address,
         Email = patient.Email,
         Sex = patient.Sex,
         UserName = userName
     };
     return Json(patientViewEntity, JsonRequestBehavior.AllowGet);
 }