How to Add New Role in AspNetRoles Table in Identity?
var roleresult = UserManager.AddToRole(currentUser.Id, "Admin");
I am using the above code to assign Admin role to the user, but it throws an error
"Role Admin does not exist."
I have tried to Add Role in AspNetRoles Table directly in the SQL, but failed.
Can anyone please tell me how to add New Role in AspNetRoles Table Using Code?