//public TrolleyService public TrolleysController(ITrolleyRepository <int, Cart> trolleyRepository, ICartProductRepository <int, CartProductViewModel> cartProductRepository) { this._trolleyRepository = trolleyRepository; this._cartProductRepository = cartProductRepository; }
public CartService(ICartRepository repo, ICartProductRepository cartProductRepo, IMapper mapper) { _repo = repo; _cartProductRepo = cartProductRepo; _mapper = mapper; }