示例#1
0
 private void btnUpate_Click(object sender, EventArgs e)
 {
     if (StaffDAL.UpdateEmployeeDetails(int.Parse(employee[0].ToString()), txtLastName.Text, txtFirstName.Text, txtNickname.Text, txtUsername.Text, txtTelephoneExtension.Text, bool.Parse(txtFlagDeleted.Text)))
     {
         this.Close();
     }
     else
     {
         MessageBox.Show("Update Failed");
     }
 }
示例#2
0
        public ActionResult Amend(Models.Staff smodel)
        {
            if (ModelState.IsValid)
            {
                StaffDAL.UpdateEmployeeDetails(smodel);

                return(Redirect("Home"));
            }
            else
            {
                return(Redirect("Home"));
            }
        }