could you please tell me how work with authorization?..
how to hide various Actions based on login in MVC4 Controller.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaganathan BantheswaranPosted Jan 25, 2014, 7:27 AM
You can use Custom Authorization Filter Actions as explained in the following posts,
http://www.codeproject.com/Articles/426766/Custom-Filters-in-MVC-Authorization-Action-Result
http://msdn.microsoft.com/en-us/library/system.web.mvc.authorizeattribute(v=vs.100).aspx#using_authorizeattribute
http://www.codeproject.com/Articles/650240/A-Simple-Action-Filter-Overview
http://schotime.net/blog/index.php/2009/02/17/custom-authorization-with-aspnet-mvc/