@Override
 public Deprtment editDepart(Deprtment depart) {
   return departRepository.saveAndFlush(depart);
 }
 @Override
 public List<Deprtment> getAll() {
   return departRepository.findAll();
 }
 @Override
 public void delete(long id) {
   departRepository.delete(id);
 }