public RecipeController( IRecipeRepository recipeRepo, IRecipeIngredientRepository ingredientRepo, IStepRepository stepRepo, IRecipeImageRepository imageRepo, IRecipeRateRepository rateRepo, ICategoryRepository categoriesRepo, IBookmarkRepository bookMarkRepo, IRecipeCategoryRepository categoryRepo, IUserRepository userRepo, IHostingEnvironment environment, IHttpContextAccessor accessor ) { this.recipeRepo = recipeRepo; this.ingredientRepo = ingredientRepo; this.stepRepo = stepRepo; this.imageRepo = imageRepo; this.rateRepo = rateRepo; this.categoriesRepo = categoriesRepo; this.bookMarkRepo = bookMarkRepo; this.categoryRepo = categoryRepo; this.userRepo = userRepo; this.environment = environment; this.accessor = accessor; }
public RecipeListModel(IRecipeRepository recipeRepository, IRecipeImageRepository recipeImageRepository, IUserFavoriteRecipeRepository userFavoriteRecipeRepository, IUserRepository userRepository) : base(userRepository) { this.recipeRepository = recipeRepository; this.recipeImageRepository = recipeImageRepository; this.userFavoriteRecipeRepository = userFavoriteRecipeRepository; }
public RecipeCreateModel(IRecipeRepository recipeRepository, IItemRepository itemRepository, IUnitRepository unitRepository, IRecipeImageRepository recipeImageRepository) { this.recipeRepository = recipeRepository; this.itemRepository = itemRepository; this.unitRepository = unitRepository; this.recipeImageRepository = recipeImageRepository; }
public RecipeController(IRecipeRepository recipeRepository, IItemRepository itemRepository, IUnitRepository unitRepository, IRecipeImageRepository recipeImageRepository, IUserFavoriteRecipeRepository userFavoriteRecipeRepository, IUserRepository userRepository) : base(userRepository) { this.recipeRepository = recipeRepository; this.itemRepository = itemRepository; this.unitRepository = unitRepository; this.recipeImageRepository = recipeImageRepository; this.userFavoriteRecipeRepository = userFavoriteRecipeRepository; }
public SearchResultModel(IItemRepository itemRepository, IRecipeRepository recipeRepository, IRecipeImageRepository recipeImageRepository) { this.itemRepository = itemRepository; this.recipeRepository = recipeRepository; this.recipeImageRepository = recipeImageRepository; }
public RecipeDetailModel(IRecipeRepository recipeRepository, IRecipeImageRepository recipeImageRepository, IUserRepository userRepository) : base(userRepository) { this.recipeRepository = recipeRepository; this.recipeImageRepository = recipeImageRepository; }