i try to create custom role provider in mvc4 to give user access in my site. when i try to using role provider is success.
i success create role provider like this
[Authorize(Roles = "admin")]
my question is, can i use more then one role name in controller? i mean like.
[Authorize(Roles = "admin")]
[Authorize(Roles = "admin")]
try to use this code, but not working for me. any one can show me how does it work? thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With