public SubCategoryViewModel(IRegionManager regionManager) { _subCategoryBl = new SubCategoryBL(); _subCategories = new ObservableCollection <SubCategoryVO>(_subCategoryBl.FindAll()); _categoryBl = new CategoryBL(); _categories = new ObservableCollection <CategoryVO>(_categoryBl.FindAll()); }
public WizardViewModel(IRegionManager regionManager) { Wizard = new WizardVO(); _categoryBL = new CategoryBL(); _categories = new ObservableCollection <CategoryVO>(_categoryBL.FindAll()); _subCategoryBL = new SubCategoryBL(); _wizardBL = new WizardBL(); Problem = new ProblemVO(); }
//Standard registration //public SubCategoryViewModel(ISubCategoryView view, IRegionManager regionManager) // : base(view) //Navigation registration public SubCategoryViewModel(IRegionManager regionManager) { _regionManager = regionManager; _subCategoryBl = new SubCategoryBL(); _subCategories = new ObservableCollection <SubCategoryVO>(_subCategoryBl.FindAll()); _categoryBl = new CategoryBL(); _categories = new ObservableCollection <CategoryVO>(_categoryBl.FindAll()); NotificationRequest = new InteractionRequest <INotification>(); NotificationCommand = new DelegateCommand(RaiseNotification); ConfirmationRequest = new InteractionRequest <IConfirmation>(); ConfirmationCommand = new DelegateCommand(RaiseConfirmation); CustomPopupRequest = new InteractionRequest <INotification>(); CustomPopupCommand = new DelegateCommand(RaiseCustomPopup); SelectItemCommand = new DelegateCommand <object[]>(SelectItem); CategoryInfoCommand = new DelegateCommand <SubCategoryVO>(CategoryInfo); }
public SubCategory MapSubCategory(SubCategoryBL subCategory) { return(Mapper.Map <SubCategoryBL, SubCategory>(subCategory)); }
public SubCategoryController() { SubCategoryBL = new SubCategoryBL(); }