public IActionResult Delete(int id) { if (EmployeeBusinessLayer.Delete(id) == 0) { return(NotFound(new { Massage = "No Data Found in the Database of Id " + id })); } return(Ok()); }
public virtual IActionResult Delete([FromQuery] string idData) { _employeeBL.Delete <TEntity>(idData); return(Ok(new { Message = "Xóa nhân viên thành công!", Status = 200 })); }
public ActionResult Delete(int id) { employeeBL.Delete(id); return(RedirectToAction("DisplayEmployeeDetails")); }