Beispiel #1
0
        public async Task <TEntity> AddAsync(TEntity entity)
        {
            var result = _votingContext.Set <TEntity>().Add(entity).Entity;
            await _votingContext.SaveChangesAsync();

            return(result);
        }