Exemplo n.º 1
0
        public async Task <IActionResult> DeleteDepartment(int Id)
        {
            try
            {
                var result = await _departmentsRepository.DeleteDepartmentById(Id);

                return(Ok(result));
            }
            catch (Exception x)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }
        }