public KittenPagesController() { var newContext = new StorageContext(); _kittensRepository = new DBKittensRepository(newContext); CustomizeMapper(); }
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(); }