예제 #1
0
 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;
 }
예제 #2
0
 public RecipeListModel(IRecipeRepository recipeRepository, IRecipeImageRepository recipeImageRepository, IUserFavoriteRecipeRepository userFavoriteRecipeRepository, IUserRepository
                        userRepository) : base(userRepository)
 {
     this.recipeRepository             = recipeRepository;
     this.recipeImageRepository        = recipeImageRepository;
     this.userFavoriteRecipeRepository = userFavoriteRecipeRepository;
 }
예제 #3
0
 public RecipeCreateModel(IRecipeRepository recipeRepository, IItemRepository itemRepository, IUnitRepository unitRepository, IRecipeImageRepository recipeImageRepository)
 {
     this.recipeRepository      = recipeRepository;
     this.itemRepository        = itemRepository;
     this.unitRepository        = unitRepository;
     this.recipeImageRepository = recipeImageRepository;
 }
예제 #4
0
 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;
 }
예제 #5
0
 public SearchResultModel(IItemRepository itemRepository, IRecipeRepository recipeRepository, IRecipeImageRepository recipeImageRepository)
 {
     this.itemRepository        = itemRepository;
     this.recipeRepository      = recipeRepository;
     this.recipeImageRepository = recipeImageRepository;
 }
예제 #6
0
 public RecipeDetailModel(IRecipeRepository recipeRepository, IRecipeImageRepository recipeImageRepository, IUserRepository userRepository) : base(userRepository)
 {
     this.recipeRepository      = recipeRepository;
     this.recipeImageRepository = recipeImageRepository;
 }