public WordRepository(TyperContext context) : base(context) { Seeder seeder = new Seeder(); if (!context.Words.Any()) { SetAll(seeder.Words); context.SaveChangesAsync(); } }
public UserRepository(TyperContext context) : base(context) { Seeder seeder; if (!context.Users.Any()) { seeder = new Seeder(); SetAll(seeder.Users); context.SaveChangesAsync(); } }
public Task SaveChangesAsync() => context.SaveChangesAsync();