Пример #1
0
        }//end delete employee account button

        protected void btnBecomeWaiter_Click(object sender, EventArgs e)
        {
            //set dircor to become waiter button
            try
            {
                EmployeeInfo employee = new EmployeeInfo();
                employee.Name = RadioButtonDirector.SelectedValue.ToString();
                employee.ChangeEmployeePositionToWaiter();
                Response.Redirect("Menu_designer.aspx");
            }
            catch (Exception ex)
            {
                lblError2.Text = ex.Message;
            }
        }