Example #1
0
        public async Task <IActionResult> DeleteDepartment(int id)
        {
            try
            {
                await _departmentProvider.RemoveDepartmentAsync(id);

                return(Ok());
            }
            catch (ArgumentException)
            {
                return(StatusCode(403));
            }
            catch (Exception)
            {
                return(StatusCode(500));
            }
        }