Exemplo n.º 1
0
        public static async Task SeedAsync(UserManager <User> userManager, WebQuizDbContext context)
        {
            await SeedUserAsync(userManager);

            await context.Questions.AddRangeAsync(TestQuestions);

            await context.SaveChangesAsync();
        }
Exemplo n.º 2
0
 public SeedRepository(WebQuizDbContext context)
 {
     _context = context;
 }