Exemple #1
0
 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
     }));
 }
Exemple #3
0
 public ActionResult Delete(int id)
 {
     employeeBL.Delete(id);
     return(RedirectToAction("DisplayEmployeeDetails"));
 }