Exemple #1
0
        //update patient password
        public JsonResult UpdatePatientPassword(Models.PatientProfile password)
        {
            string LivePatient    = Session["PatientUserName"].ToString();
            var    passwordStatus = password.UpdatingPassword(password.Patient_Password, password.Patient_NewPassword, LivePatient);

            return(Json(passwordStatus.ToString(), JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
        public ActionResult UpdateProfile(Models.PatientProfile profile)
        {
            string livePatient = Session["PatientUsername"].ToString();

            if (profile.Updating(profile.Patient_Name, profile.Patient_Contact, profile.Patient_DOB, profile.Patient_BloodGP, profile.Patient_City, profile.Patient_State, profile.Patient_Country, profile.Patient_Pin, livePatient))
            {
                return(Json(new { Success = true }));
            }
            return(Json(new { Error = true }));
        }