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

            await context.SaveChangesAsync();
        }