public AdressProvider() { EFContext context = new EFContext(); _citiesRepository = new CitiesRepository(context); _districtsRepository = new DistrictsRepository(context); _streetsRepository = new StreetsRepository(context); _numberHomeRepository = new NumberHomeRepository(context); _roomsRepository = new RoomsRepository(context); }
public BuinessLayer(ICitiesRepository deptRepository, IStreetsRepository streetsRepository) { _citiesRepository = deptRepository; _streetsRepository = streetsRepository; }
public BuinessLayer() { _citiesRepository = new CitiesRepository(); _streetsRepository = new StreetsRepository(); }