public EditPatientModel(Patient patient)
 {
     this.UserId = patient.UserId;
     this.PatientName = patient.Name;
     this.Email = patient.Email;
     this.Phone = patient.Phone;
     this.Address = patient.Address;
     this.EMCName = patient.EMCName;
     this.EMCAddress = patient.EMCAddress;
     this.EMCEmail = patient.EMCEmail;
     this.EMCPhone = patient.EMCPhone;
 }
 public EditPatientInsuranceModel(Patient patient)
 {
     this.UserId = patient.UserId;
     this.PatientName = patient.Name;
     if (patient.InsuranceCompany != null)
     {
         this.InsuranceCompanyID = patient.InsuranceCompany.InsuranceCompanyID;
     }
     if (patient.InsurancePolicy != null)
     {
         this.InsurancePolicyID = patient.InsurancePolicy.InsurancePolicyID;
     }
     this.InsurancePolicyNumber = patient.InsurancePolicyNumber;
     if (patient.InsuranceExpiryDate != null)
     {
         this.InsuranceExpiryDate = (DateTime)patient.InsuranceExpiryDate;
     }
 }