public BaseRepository(CashDbContext context) { this.context = context; }
public ServiceCategory(CashDbContext dbContext, IMapper mapper) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public UnitOfWork() { context = new CashDbContext(); }
public ServiceTransactionRetentive(CashDbContext dbContext, IMapper mapper) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public UnitOfWork(CashDbContext context) { this.context = context; }