Example #1
0
 public String editDish(String dishId) {
   dish = dishService.findById(Integer.parseInt(dishId));
   return "createDish";
 }
Example #2
0
 public String addDish() {
   dish.setCategory(categoryService.find(categoryId));
   dishService.save(dish);
   return "administerMenuCategories";
 }
Example #3
0
  public String refreshDishesByCategoryList(String categoryId) {

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