Exemple #1
0
        protected void AddRecipe(object sender, CommandEventArgs e)
        {
            Plan plan = Session["Plan"] as Plan;

            Recipe recipe = new Recipe(e.CommandArgument.ToString());

            plan.AddRecipe(recipe);
            Session["Plan"] = plan;
        }