public IActionResult DeleteDepartment(char Id) { var department = _dataAccessProvider.GetDepartment(Id); if (department == null) { return(BadRequest()); } _dataAccessProvider.DeleteDepartment(Id); return(Ok()); }