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