public async Task AddCalculation(Calculation calculation)
        {
            await _dbContext.Calculations.AddAsync(calculation);

            await _dbContext.SaveChangesAsync();
        }
Beispiel #2
0
        public async Task Add(TEntity item)
        {
            await _dbContext.Set <TEntity>().AddAsync(item);

            await _dbContext.SaveChangesAsync();
        }