Beispiel #1
0
        public async Task <int> CreateAsync(T entity)
        {
            await belatrixDbContext.AddAsync(entity);

            return(await belatrixDbContext.SaveChangesAsync());
        }
Beispiel #2
0
        public async Task <int> Create(T entity)
        {
            await _db.AddAsync(entity);

            return(await _db.SaveChangesAsync());
        }