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); } }
public IngredientRecipe(TacoService.IngredientRecipe ir) { Name = ir.ingredientName; Amount = (int)ir.amount; Unit = ir.unit; }
public TacoController(TacoService ts) { _ts = ts; }