public async Task CreateNewEvent(EventList eventList) { using var context = new RPGContext(_options); await context.AddAsync(eventList).ConfigureAwait(false); await context.SaveChangesAsync().ConfigureAwait(false); }
public async Task CreateNewItemAsync(Item item) { await _context.AddAsync(item).ConfigureAwait(false); await _context.SaveChangesAsync().ConfigureAwait(false); }