I am having some troubles trying to determine where the best place is to create users and roles for an MVC application. Essentially what I want to do is create an admin role and a user role that is already created BEFORE my application gets the the Home Controller.
Now the one thing I'm experiencing is that I added the proper code in my Initializer.cs file but when my application runs it goes to go home controller first and when I debug the code it never hits my Initializer.cs since at this point I haven't access anything regarding my DataContext. I was unsure exactly what code to include in this since it spans multiple files or if my description is enough for comprehension but I can include code if required.
To make it short and sweet, my goal is to create two roles and add users to the roles BEFORE it hits my HomeController. Thanks for any help offered !!