Ejemplo n.º 1
0
 public UnitOfWork(IDiscountRepository discountRepository,
                   IPassDiscountRepository passDiscountRepository,
                   IPassRepository passRepository,
                   ITourRepository tourRepository)
 {
     _discountRepository     = discountRepository;
     _passDiscountRepository = passDiscountRepository;
     _passRepository         = passRepository;
     _tourRepository         = tourRepository;
 }
Ejemplo n.º 2
0
 public UnitOfWork(ICityRepository cityRepository, IClientRepository clientRepository, IClimateRepository climateRepository,
                   ICountryRepository countryRepository, IDiscountRepository discountRepository, IDurationRepository durationRepository,
                   IHotelRepository hotelRepository, IPassDiscountRepository passDiscountRepository, IPassRepository passRepository,
                   ITourRepository tourRepository, TravelCompanyDBContext context)
 {
     _cityRepository         = cityRepository;
     _clientRepository       = clientRepository;
     _climateRepository      = climateRepository;
     _countryRepository      = countryRepository;
     _discountRepository     = discountRepository;
     _durationRepository     = durationRepository;
     _hotelRepository        = hotelRepository;
     _passDiscountRepository = passDiscountRepository;
     _passRepository         = passRepository;
     _tourRepository         = tourRepository;
     _context = context;
 }
 public PassDiscountService(IUnitOfWork unitOfWork)
 {
     _unit       = unitOfWork;
     _repository = _unit.PassDiscountRepository;
 }