public async Task CompleteAsync() { try { await _dbContext .SaveChangesAsync(); } catch (Exception ex) { throw; } }
public static async Task SeedFakeData(CategoryMsDbContext context) { await context.Categories.AddRangeAsync(FakeCategories()); await context.SaveChangesAsync(); }