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