@Override public Long receive(Long id, int amount, double price) { Notebook notebook = menu.getNotebookDao().read(id); Store store = new Store(notebook, amount, price); Long id2 = storeDao.create(store); return id2; }
@Override public boolean updateNotebook(Notebook notebook) { return menu.getNotebookDao().update(notebook); }