Beispiel #1
0
 public IActionResult Delete(int id)
 {
     try {
         employeesService.DeleteEmployeeById(id);
         return(Ok());
     }catch (Exception e) {
         return(ThrowInternalServerError(e));
     }
 }
 public IActionResult DeleteEmployeeById(int id)
 {
     _employeesService.DeleteEmployeeById(id);
     return(Ok());
 }