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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -