This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |