public CookingRecipeService (ICookingRecipeRepository cookingRecipeRepository, IUserAccountService userAccountService, IFileService fileService, IWebHostEnvironment environment) { this.cookingRecipeRepo = cookingRecipeRepository; this.userAccountService = userAccountService; this.fileService = fileService; this.env = environment; }
public CookingController( ICookingRecipeRepository cookingRecipeRepository, ICookingRecipeService cookingRecipeService, ICloudinaryService cloudinaryService, IMapper mapper) { this.cookingRecipeService = cookingRecipeService; this.cloudinaryService = cloudinaryService; this.cookingRecipeRepo = cookingRecipeRepository; this.mapper = mapper; }