private bool DepartmentExists(int id)
 {
     return(_deptRepo.GetAllBy(x => x.Id == id)?.Count() > 0);
 }