Exemplo n.º 1
0
 public CustomerController(
     IDataService <Customer, GetCustomerModel, SendCustomerModel> dataService,
     IFavoriteProductService favoriteProductService,
     IProductReviewService productReviewService)
     : base(dataService)
 {
     FavoriteProductService = favoriteProductService ?? throw new ArgumentNullException(nameof(favoriteProductService));
     ProductReviewService   = productReviewService ?? throw new ArgumentNullException(nameof(productReviewService));
 }
Exemplo n.º 2
0
 public ConfirmRecipeController(IRecipesService recipesService, IShopProductsService shopProductsService, IFavoriteProductService favoriteProductService)
 {
     this.recipesService         = recipesService;
     this.shopProductsService    = shopProductsService;
     this.favoriteProductService = favoriteProductService;
 }
Exemplo n.º 3
0
 public FavoriteProductsController(IFavoriteProductService favoriteProductService)
 {
     this.favoriteProductService = favoriteProductService;
 }