Horje
identity add role to user Code Example
identity add role to user
var user = new JobUser { UserName = model.Email, Email = model.Email };
var result = await UserManager.CreateAsync(user, model.Password);
if (result.Succeeded)
{
    //add this to add role to user
     await UserManager.AddToRoleAsync(user.Id, "Name of your role");
}




Whatever

Related
finally Code Example finally Code Example
change file recursively Code Example change file recursively Code Example
getting the size of a gameobject Code Example getting the size of a gameobject Code Example
scanf() Code Example scanf() Code Example
hashmap put Code Example hashmap put Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7