public static Result editMeal(int id) {

    String userEmail = Session.getCurrentUser(ctx()).email;

    Meal oldMeal = Meal.find(id);

    String mealName = inputForm.bindFromRequest().field("name").value();
    String mealPrice = inputForm.bindFromRequest().field("price").value();
    String mealCategory = inputForm.bindFromRequest().field("category").value();
    String mealDescription = inputForm.bindFromRequest().field("description").value();

    mealPrice = mealPrice.replace(',', '.');
    Double price = Double.parseDouble(mealPrice);

    try {
      Meal.modifyMeal(oldMeal, mealName, price, mealCategory, mealDescription);
      flash("successEdited", "You have successfully edited your meal");
      Logger.info("User " + userEmail + " just edited meal " + oldMeal.id);
    } catch (Exception e) {
      Logger.error("User " + userEmail + " failed to edit meal " + oldMeal.id);
    }
    return redirect("/restaurantOwner/" + userEmail);
  }