Skip to content

Instantly share code, notes, and snippets.

"It is certain",
"It is decidedly so",
"Without a doubt",
"Yes definitely",
"You may rely on itv
"As I see it, yes",
"Most likely",
"Outlook good",
"Yes",
"Signs point to yes",
public static async Task Initialize(IServiceProvider serviceProvider)
{
using (var scope = serviceProvider.CreateScope())
{
var services = scope.ServiceProvider;
var context = services.GetRequiredService<ApplicationDbContext>();
var userManager = services.GetRequiredService<UserManager<IdentityUser>>();
var roleManager = services.GetRequiredService<RoleManager<IdentityRole>>();
var roles = new string[] { HealthAppRoles.Patient, HealthAppRoles.Doctor, HealthAppRoles.Admin };
foreach (var role in roles)