public DatabasePartsController(IFormsFactory factory, IDatabasePartsView view)
 {
     _factory            = factory;
     _view               = view;
     _partsService       = new PartService();
     _lSetService        = new LSetService();
     _categoryRepository = new Repository <Category>();
     _currQuery          = _partsService.GetAll();
 }
        public InventorySetsController(IInventorySetsView view, User user)
        {
            _view = view;
            _user = user;

            _userSetService  = new UserSetService();
            _lSetService     = new LSetService();
            _themeRepository = new Repository <Theme>();

            _currQuery = _userSetService.GetAllForUser(user.Id);
        }
Example #3
0
        public BuilderAssistantController(IBuilderAssistantView view, User user)
        {
            _view = view;
            _user = user;

            _userSetService  = new UserSetService();
            _lSetService     = new LSetService();
            _themeRepository = new Repository <Theme>();

            _result    = _lSetService.BuilderAssistent(user.Id);
            _currQuery = _result.AsQueryable();
        }
        public DatabaseSetsController(IFormsFactory factory, IDatabaseSetsView view, User user)
        {
            _factory = factory;
            _view    = view;
            _user    = user;

            _lSetService     = new LSetService();
            _wishlistService = new WishlistService();
            _userSetService  = new UserSetService();

            _themeRepository = new Repository <Theme>();
            _currQuery       = _lSetService.GetAll();
        }