public async Task <IActionResult> DeleteEmployee(int id) { try { await _employeeProvider.RemoveEmployeeAsync(id); return(Ok()); } catch (ArgumentException) { return(StatusCode(403)); } catch (Exception) { return(StatusCode(500)); } }
public async Task <IActionResult> DeleteEmployee(int id) { try { await _employeeProvider.RemoveEmployeeAsync(id); return(Ok()); } catch (ArgumentException) { return(StatusCode(403)); } catch (Exception) { return(StatusCode(500)); } }