public ToysCategoriesTabViewModel(IToysCategoriesService toysCategoriesService) { _toysCategoriesService = toysCategoriesService; ToysCategories = new ObservableCollection <ToyCategoryEntityViewModel>(); ReloadToysCategoriesAsync() .Wait(); }
public AdminService(IToysCategoriesService toysCategoriesService, IToysService toysService, IPreOrdersService preOrdersService, ICustomersService customersService, ISalesService salesService ) { ToysCategoriesService = toysCategoriesService; ToysService = toysService; PreOrdersService = preOrdersService; CustomersService = customersService; SalesService = salesService; }
public AdminPageViewModel(IToysService toysService, IToysCategoriesService categoriesService, ISalesService salesService, ICustomersService customersService, IPreOrdersService preOrdersService, ISalesStatisticsPrinter salesStatisticsPrinter ) { ToysContext = new ToysTabViewModel(toysService); ToysCategoriesContext = new ToysCategoriesTabViewModel(categoriesService); SalesContext = new SalesTabViewModel(salesService, salesStatisticsPrinter); CustomersContext = new CustomersTabViewModel(customersService); PreOrdersContext = new PreOrdersTabViewModel(preOrdersService); }