public IActionResult DeleteEmployee(int id) { var employeee = _employeesService; _employeesService.DeleteEmployee(id); return(Ok()); }
public async Task <object> Delete(string UID) { bool isValid = await _employeeService.DeleteEmployee(UID); _notification.SetNotificationMessage(isValid, Title, UID); return(_notification); }
public async Task <IActionResult> DeleteEmployee(int id) { await _employeesService.DeleteEmployee(id); return(Ok()); }