Example #1
0
        public Task <TEntity> AddAsync(TEntity entity)
        {
            _commandDbContext.Set <TEntity>().Add(entity);

            return(Task.FromResult(entity));
        }
 public async Task <IReadOnlyList <TEntity> > GetAllAsync()
 {
     return(await _dbContext.Set <TEntity>().ToListAsync());
 }