protected void register_btn_Click(object sender, EventArgs e) { DoctorClass doc = new DoctorClass(); doctor d = getUpdatedDoctorObject(); //Register bool registerSucceeded = doc.editDoctor(d, false); if (registerSucceeded) { ErrorL.InnerText = "Succeed"; } else { ErrorL.InnerText = "Error"; } }
protected void register_btn_Click(object sender, EventArgs e) { DoctorClass doc = new DoctorClass(); d = getUpdatedDoctorObject(); //Register bool registerSucceeded = doc.editDoctor(d, true); if (registerSucceeded) { Response.Redirect("AdminViewDoctor.aspx"); } else { ErrorL.Text = "Error"; } }