c# - How to restrict some views/actions to logged in users? -
i created new controller called dashboard , view called index says, hello username.
in mvc, how can make available logged in users?
you can use authorize
attribute:
[authorize] public actionresult index() { }
Comments
Post a Comment