Пример #1
0
        public KittenPagesController()
        {
            var newContext = new StorageContext();
            _kittensRepository = new DBKittensRepository(newContext);

            CustomizeMapper();
        }
Пример #2
0
        public AdminController()
        {
            var newContext = new StorageContext();
            _kittensRepository = new DBKittensRepository(newContext);
            _picturesRepository = new DbPicturesRepository(newContext);
            _breedsRepository = new DbBreedsRepository(newContext);
            _ownersRepository = new DbOwnersRepository(newContext);
            _displayPlacesRepository = new DbDisplayPlacesRepository(newContext);

            _picturesLinksConstructor = new PicturesLinksConstructor();
            CustomizeAutomapper();
        }