Esempio n. 1
0
        public async Task <Entity> CreateAsync(Entity entity)
        {
            await _context.Set <Entity>().AddAsync(entity);

            await SaveAllAsync();

            return(entity);
        }
 public async Task <IEnumerable <Entity> > GetAllAsync()
 {
     return(await _context.Set <Entity>().AsNoTracking().ToListAsync());
 }