Esempio n. 1
0
 public String editCategory(String categoryId) {
   category = categoryService.find(Integer.parseInt(categoryId));
   return "createDishCategory";
 }
Esempio n. 2
0
 public String addDish() {
   dish.setCategory(categoryService.find(categoryId));
   dishService.save(dish);
   return "administerMenuCategories";
 }
Esempio n. 3
0
  public String refreshDishesByCategoryList(String categoryId) {

    category = categoryService.find(Integer.parseInt(categoryId));
    dishes = dishService.findByCategory(category);
    return "administerMenu";
  }