Esempio n. 1
0
        public async Task CreateNewEvent(EventList eventList)
        {
            using var context = new RPGContext(_options);

            await context.AddAsync(eventList).ConfigureAwait(false);

            await context.SaveChangesAsync().ConfigureAwait(false);
        }
Esempio n. 2
0
        public async Task CreateNewItemAsync(Item item)
        {
            await _context.AddAsync(item).ConfigureAwait(false);

            await _context.SaveChangesAsync().ConfigureAwait(false);
        }