Skip to content

01 Add Admin User and Role

M. Fares edited this page Mar 12, 2018 · 1 revision

Q. How to add an admin role with an admin user?

  1. Enable migrations to create the Migrations folder Open the Package Manager Console and type the command PMC> Enable-Migrations

  2. Add the following code to the Seed method in the /Migrations/Configuration.cs file

Clone this wiki locally