Exemple #1
0
 public Task AddAsync(RoundUp entity) => _dbContext.Set <RoundUp>().AddAsync(entity);
 public Task <DirectDebitPayment> FindById(Guid posPaymentId)
 {
     return(_dbContext.Set <DirectDebitPayment>().FindAsync(posPaymentId));
 }
Exemple #3
0
        public async Task Add(BankDetail item)
        {
            await _context.Set <BankDetail>().AddAsync(item);

            await _context.SaveChangesAsync();
        }
Exemple #4
0
 public virtual IEnumerable <T> GetAll()
 {
     return(dbContext.Set <T>()
            .AsEnumerable());
 }
Exemple #5
0
        public virtual async Task <T> CreateAsync(T item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            await _dbContext.Set <T>().AddAsync(item);

            return(item);
        }
 public Task AddAsync(BankTransfer entity) => _dbContext.Set <BankTransfer>().AddAsync(entity);
 public Task AddAsync(CashWithdrawal entity) => _dbContext.Set <CashWithdrawal>().AddAsync(entity);
Exemple #8
0
 public Task AddAsync(Exchange entity) => _dbContext.Set <Exchange>().AddAsync(entity);
 public AccountRepository(BankingDbContext bankingDbContext)
 {
     this.bankingDbContext = bankingDbContext;
     accounts = bankingDbContext.Set <Account>();
 }
Exemple #10
0
 public Task AddAsync(Collection entity) => _dbContext.Set <Collection>().AddAsync(entity);