Beispiel #1
0
        private static async Task SeedAsync(this BudgetDbContext context, RoleManager <IdentityRole> roleManager)
        {
            await context.AddRolesAsync(roleManager);

            await context.AddCurrenciesAsync();

            await context.AddPaymentTypesAsync();

            await context.AddCategoriesAsync();

            await context.SaveChangesAsync();
        }