public RequireCartAttribute()
 {
     _cartQuery = ServiceLocator.Current.GetInstance<CartQuery>();
 }
Exemplo n.º 2
0
 public CartController(IBus bus, CartQuery cartQuery, ProductQuery productQuery)
 {
     _cartQuery = cartQuery;
     _productQuery = productQuery;
     _bus = bus;
 }