Esempio n. 1
0
        private async Task CreateRoom(string name)
        {
            var set = _context.Set <Room>();

            await set.AddAsync(new Room { Name = name });

            await _context.SaveChangesAsync();
        }
Esempio n. 2
0
 public async Task SaveAsync()
 {
     await _context.SaveChangesAsync();
 }