public ShoppingCartsController(CartIdProvider cartIdProvider, IGetShopItemsListQuery getShopItemsListQuery, IGetShoppingCartItemsListQuery getShoppingCartItemsListQuery, IAddShoppingCartItemCommand addShoppingCartItemCommand, IRemoveShoppingCartItemCommand removeShoppingCartItemCommand) { //_cartIdProvider = cartIdProvider; _getShopItemsListQuery = getShopItemsListQuery; _getShoppingCartItemsListQuery = getShoppingCartItemsListQuery; _addShoppingCartItemCommand = addShoppingCartItemCommand; _removeShoppingCartItemCommand = removeShoppingCartItemCommand; _cartIdProvider = cartIdProvider; }
public ShopItemsController(IGetShopItemsListQuery getShopItemsListQuery, IGetShopItemsListByCategoryQuery getShopItemsListByCategoryQuery) { _getShopItemsListQuery = getShopItemsListQuery; _getShopItemsListByCategoryQuery = getShopItemsListByCategoryQuery; }