public static async Task SeedData(ToDoContext dbContext) { var items = GetMockToDoItemList(); await dbContext.AddRangeAsync(items); await dbContext.SaveChangesAsync(); }
public static async Task SeedData(ToDoContext dbContext) { var items = GetMockToDoItemList(); await dbContext.AddRangeAsync(items); await dbContext.SaveChangesAsync(); }