public CatalogController() { superCategoryRepo = new SuperCategoryRepository(new GainBargainContext()); categoryRepo = new Repository <Category>(new GainBargainContext()); productRepo = new ProductsCacheRepository(new GainBargainContext()); marketRepo = new MarketRepository(new GainBargainContext()); favProductRepository = new FavoriteProductRepository(); }
public AdminController() { superCategories = new SuperCategoryRepository(db); categoryRepository = new Repository <Category>(db); marketRepository = new Repository <Market>(db); parserSourceRepository = new ParserSourceRepository(db); dbLogsRepository = new DbLogsRepository(db); }