public GroceryListController(IIngredientData ingredientData) { _ingredientData = ingredientData; GroceryList = new GroceryListViewModel { IngredientList = new List <Ingredient>() }; }
public CreateModel(IRecipeData recipeData, IHtmlHelper htmlHelper, IIngredientData ingredientData, UserManager <ApplicationUser> userManager, IImageData imageData) { this.recipeData = recipeData; this.htmlHelper = htmlHelper; this.ingredientData = ingredientData; this.imageData = imageData; this.userManager = userManager; }
public RecipesController(IHtmlHelper htmlHelper, IRecipeData recipeData, IRecipeComponentData recipeComponentData, IIngredientData ingredientData, IUserRecipeData userRecipeData, IWebHostEnvironment webHostEnvironment) { _htmlHelper = htmlHelper; _recipeData = recipeData; _recipeComponentData = recipeComponentData; _ingredientData = ingredientData; _userRecipeData = userRecipeData; _webHostEnvironment = webHostEnvironment; }
/// <summary> /// Initializes a new instance of the <see cref="Ingredient"/> class. /// </summary> public Ingredient() { _ingredient = new IngredientDb(); }
/// <summary> /// Initializes a new instance of the <see cref="Ingredient"/> class. /// </summary> /// <param name="ingredient">The ingredient.</param> internal Ingredient(IIngredient ingredient) { _ingredient = ingredient as IIngredientData; }
public EditModel(IIngredientData ingredientData, IRecipeData recipeData) { this.ingredientData = ingredientData; this.recipeData = recipeData; }
/// <summary> /// Ingredient logic constructor for use with ioc /// </summary> /// <param name="ingredientData"></param> public IngredientLogic(IngredientData ingredientData) { _ingredientData = ingredientData; }
/// <summary> /// Ingredient logic constructor /// </summary> public IngredientLogic() { _ingredientData = new IngredientData(); }
public IngredientsController(IIngredientData ingredientData) { _ingredientData = ingredientData; }
public DeleteModel(IIngredientData ingredientData) { this.ingredientData = ingredientData; }
public ListModel(IIngredientData ingredientData) { this.ingredientData = ingredientData; }
public IngredientsController(IMapper mapper, IIngredientData ingredientData, LinkGenerator linkGenerator) { _mapper = mapper; _ingredientData = ingredientData; _linkGenerator = linkGenerator; }
public DetailModel(IIngredientData ingredientData) { this.ingredientData = ingredientData; }