public void editAction(Action action) { // редактировать
   //        action.setAction(actionName);
   //        action.setDate(date);
   //        action.setIsMade(isMade);
   //        action.setNote(note);
   actionRepository.save(action);
 }
 public Page<Action> findAll(Pageable pegable) {
   Page<Action> actionPage = actionRepository.findAll(pegable);
   return actionPage;
 }
 public Page<Action> findByIsMade(Pageable pegable, Boolean isMade) {
   Page<Action> actionPage = actionRepository.findByIsMade(pegable, isMade);
   return actionPage;
 }
 public Long changeIsMade(Long id, Boolean isMade) { // отмечать как «Выполнено»
   Action action = actionRepository.findOne(id);
   action.setIsMade(isMade);
   actionRepository.save(action);
   return action.getId();
 }
 public void dellAction(Long id) { // удалять
   actionRepository.delete(id);
 }
 public Long addAction(Action action) { // добавлять новые
   // Action action = new Action(actionName, date, note);
   actionRepository.save(action);
   return action.getId();
 }
 public Action getAction(Long id) {
   return actionRepository.findOne(id);
 }