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