private void btnDemitir_Click(object sender, EventArgs e) { int idEmp = Convert.ToInt32(nudID.Value); string res = EB.DeleteEmployee(idEmp); MessageBox.Show(res, "liriou's Burguer", MessageBoxButtons.OK, MessageBoxIcon.Information); }
public ActionResult DeleteEmployee(int EmployeeId) { bool isDeleted = _EmployeesBusiness.DeleteEmployee(EmployeeId); return(RedirectToAction("GetEmployees")); }
public IHttpActionResult DeleteEmployee(int EmployeeId) { bool isDeleted = _EmployeesBusiness.DeleteEmployee(EmployeeId); return(Ok(isDeleted)); }