public IActionResult Remove([FromRoute] int id)
 {
     try
     {
         return(Ok(_departmentData.Remove(id)));
     }
     catch (Exception ex)
     {
         return(Problem(ex.Message, nameof(Remove), StatusCodes.Status500InternalServerError, "Fail removing the department."));
     }
 }