public CheckoutController(ICart cartService,
                           ICartViewModel cartViewModelService,
                           IOrderServ orderService)
 {
     _cartService          = cartService;
     _orderService         = orderService;
     _cartViewModelService = cartViewModelService;
 }
Example #2
0
 public MainViewModel(ICatalogViewModel catalogViewModel,
                      ICartViewModel cartViewModel, IEventAggregator eventAggregator)
 {
     CatalogViewModel = catalogViewModel;
     CartViewModel    = cartViewModel;
     _eventAggregator = eventAggregator;
     GetCatalog       = new DelegateCommand(OnGetCatalogExecute);
     UpdateDataBase   = new DelegateCommand(OnUpdateDataBaseExecute);
 }
Example #3
0
 public CartController(ICart cartService, ICartViewModel cartViewModelService)
 {
     _cartService          = cartService;
     _cartViewModelService = cartViewModelService;
 }