To create two roles called "admin" and "edit" using ASP.NET Core Identity, you can follow the steps below:
ConfigureServices
method in Startup.cs
file:main.cs464 chars16 lines
RoleManager
:main.cs658 chars22 lines
Configure
method, you can assign the roles to users:main.cs217 chars6 lines
Hope it helps!
gistlibby LogSnag