/// <summary> /// Constructor /// Initialized the repositories needed for all functions needed for controller /// </summary> /// <param name="recipeRepository">creates recipe repository through dependency injection</param> /// <param name="foodRepository">>creates food repository through dependency injection</param> /// <param name="ingredientRepository">>creates ingredient repository through dependency injection</param> /// <param name="pantryRepository">>creates pantry repository through dependency injection</param> public RecipeController(IRecipeRepository recipeRepository, IFoodRepository foodRepository, IIngredientRepository ingredientRepository, IPantryRepository pantryRepository) { this.ingredientRepository = ingredientRepository; this.recipeRepository = recipeRepository; this.foodRepository = foodRepository; this.pantryRepository = pantryRepository; }
public MealIngredientsController(IPantryRepository repository, ILogger <MealIngredientsController> logger, IMapper mapper, LinkGenerator linkGenerator) { _repository = repository; _logger = logger; _mapper = mapper; _linkGenerator = linkGenerator; }
public MealFinderController(IPantryRepository repository, ILogger <MealFinderController> logger, IMapper mapper) { _repository = repository; _logger = logger; _mapper = mapper; }
public PantryService(IPantryRepository pantryRepository) { _pantryRepository = pantryRepository; }
public PantryService(IPantryRepository repository, UserInformation userInformation) { this.repository = repository; this.userInformation = userInformation; }
public PantryApiService(IPantryRepository pantryRepository, IPantryStockRepository pantryStockRepository) { _pantryRepository = pantryRepository; _pantryStockRepository = pantryStockRepository; }
public FoodController(IFoodRepository foodRepository, IPantryRepository pantryRepository) { this.foodRepository = foodRepository; this.pantryRepository = pantryRepository; }
public IngredientController(IPantryRepository repository, ILogger <IngredientController> logger, IMapper mapper) { _repository = repository; _logger = logger; _mapper = mapper; }
public PantryController(IPantryRepository pantryRepository, IRepository <Ingredient> ingredientRepo) { _pantryRepository = pantryRepository; _ingredientRepo = ingredientRepo; }