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";
            }
        }
Exemplo n.º 2
0
        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";
            }
        }