コード例 #1
0
            public Recipe(TacoService.Recipe recipe)
            {
                Name = recipe.recipeName;
                Instructions = recipe.instructions;
                Servings = (int)recipe.servings;
                CookingTime = (int)recipe.cookingTime;
                Category = recipe.category;

                ingredientRecipe = new List<IngredientRecipe>();
                foreach(TacoService.IngredientRecipe i in recipe.IngredientRecipe)
                {
                    IngredientRecipe r = new IngredientRecipe(i);
                    ingredientRecipe.Add(r);
                }
            }
コード例 #2
0
 public IngredientRecipe(TacoService.IngredientRecipe ir)
 {
     Name = ir.ingredientName;
     Amount = (int)ir.amount;
     Unit = ir.unit;
 }
コード例 #3
0
 public TacoController(TacoService ts)
 {
     _ts = ts;
 }