public ActionResult UpdatePatient(int id)
        {
            //Get the patient from database based on the selected doctor id
            var objPatient = objPat.getPatientByID(id);

            if (objPatient == null)
            {
                return(View("NotFound"));
            }
            else
            {
                UpdatePatientModel objUpPat = new UpdatePatientModel();


                objUpPat.health_card = objPatient.health_card;
                objUpPat.first_name  = objPatient.first_name;
                objUpPat.last_name   = objPatient.last_name;
                objUpPat.birth_date  = objPatient.birth_date;
                objUpPat.gender      = objPatient.gender;
                objUpPat.email       = objPatient.email;
                objUpPat.phone       = objPatient.phone;
                objUpPat.address     = objPatient.address;
                objUpPat.city        = objPatient.city;
                objUpPat.province    = objPatient.province;
                objUpPat.postal_code = objPatient.postal_code;

                return(View(objUpPat));
            }
        }
 public ActionResult PatientDetail(int id)
 {
     return(View(objPat.getPatientByID(id)));
 }