public ShoppingBasketController(ICartRepository cartsRepository, IRepository <Product> productsRepository, IMapperProvider <Cart, CartDto> cartMapperProvider, IMapperProvider <AddCartItemDto, CartItem> cartItemMapper, ILogger <ShoppingBasketController> logger) { _cartsRepository = cartsRepository; _productsRepository = productsRepository; _cartMapper = cartMapperProvider.Provide(); _cartItemMapper = cartItemMapper.Provide(); _logger = logger; }
public ProductDtoResolver(IRepository <Product> productsRepository, IMapperProvider <Product, CartProductDto> mapper) { this._productsRepository = productsRepository; this._mapper = mapper.Provide(); }