Exemplo n.º 1
0
 public ProductsController(
     IMapper mapper,
     IProductsService productsService,
     UserManager <ApplicationUser> userManager,
     IUsersLikesService usersLikesService)
 {
     this._mapper            = mapper;
     this._productsService   = productsService;
     this._userManager       = userManager;
     this._usersLikesService = usersLikesService;
 }
Exemplo n.º 2
0
 public ProductsController(
     IMapper mapper,
     IProductsService productsService,
     ICategoriesService categoriesService,
     IIngredientsService ingredientsService,
     IReviewsService reviewsService,
     IProductsIngredientsService productsIngredientsService,
     IUsersLikesService usersLikesService,
     IOrdersService ordersService,
     IHubContext <ProductsHub, IProductsHubClient> productHubContext)
 {
     this._mapper                     = mapper;
     this._productsService            = productsService;
     this._categoriesService          = categoriesService;
     this._ingredientsService         = ingredientsService;
     this._reviewsService             = reviewsService;
     this._productsIngredientsService = productsIngredientsService;
     this._usersLikesService          = usersLikesService;
     this._ordersService              = ordersService;
     this._productsHubContext         = productHubContext;
 }