public CheckoutModel(ICartCalculatorService calculatorService, ICartService cartService, IProductQueryModel productQuery, IOrderApplication orderApplication, IZarinPalFactory zarinPalFactory, IAuthHelper authHelper) { _cartCalculatorService = calculatorService; _cartService = cartService; _productQuery = productQuery; _orderApplication = orderApplication; _zarinPalFactory = zarinPalFactory; _authHelper = authHelper; Cart = new Cart(); }
public ShoppingCartModel(IProductQueryModel productQuery) { CartItems = new List <CartItem>(); _productQuery = productQuery; }
public LatestProductsViewComponent(IProductQueryModel productQueryModel) { _productQueryModel = productQueryModel; }
public SearchModel(IProductQueryModel productQuery) { _productQuery = productQuery; }
public ProductModel(IProductQueryModel productQuery, ICommentApplication commentApplication) { _productQuery = productQuery; _commentApplication = commentApplication; }