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"); } }
public ActionResult Amend(Models.Staff smodel) { if (ModelState.IsValid) { StaffDAL.UpdateEmployeeDetails(smodel); return(Redirect("Home")); } else { return(Redirect("Home")); } }