public OrderService(IRepository <Order> repository,
                     IUnitOfWork unitOfWork,
                     TempusHiringDbContext context,
                     IMapper mapper) : base(repository, unitOfWork, mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Exemple #2
0
 public Repository(TempusHiringDbContext context)
 {
     _context = context;
     _set     = _context.Set <TSource>();
 }
Exemple #3
0
 public CatalogService(TempusHiringDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
     _priceRange ??= GetWatchesPriceRange();
 }
Exemple #4
0
 public UnitOfWork(TempusHiringDbContext dbContext)
 {
     DbContext = dbContext;
 }
Exemple #5
0
 public ShoppingCartService(TempusHiringDbContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }