The code must be very simple and hard codded "NO DATABASE is needed"
The task as below:
1-Create HTML Login view (user name, password, and submit button).
2-Create the Index view "anyone can access it i.e use "AuthAttribute(anonymous)"
2-Create the Admin view only the admin role can access it i.e use "AuthAttribute(Role="admin")" to protect the controller.
When a user tries to enter the Admin view it must have an Admin role otherwise it must redirect to Login view.
When the user enters username "Test" and password "TestPWD" in the login we should use the UserManager and SignInManager to create a user and assign him Admin role and redirect the user to the Admin view.