示例#1
0
 public ApiClientAsync(ApiConfig config)
 {
     _config        = config;
     _apiHttpClient = new ApiHttpClient(_config);
     CartService    = new CartServiceAsync(_apiHttpClient, _config);
     ProductService = new ProductServiceAsync(_apiHttpClient, _config);
 }
示例#2
0
 public ProductController(IProductServiceAsync productServiceAsync)
 {
     _productServiceAsync = productServiceAsync;
 }
示例#3
0
 public ProductsController(IUnitOfWork context, IProductServiceAsync productServiceAsync, IMapper mapper)
 {
     _unitOfWork          = context;
     _productServiceAsync = productServiceAsync;
     _mapper = mapper;
 }