How to Set Membership Provider Authorization on Controller in MVC 4

18 Mar 2014, 01:06 PM

Set the [Authorize] attribute on the class level to ensure that only login user can access the controller.

 [Authorize]
 public class HomeController : Controller
 {


 }

Related Contents

15 May 2014, 08:07 AM
C#, LINQ, List
15 May 2014, 07:54 AM
C#, LINQ, List
29 Apr 2014, 03:07 AM
C#, Generic
About
Set Authorization attribute on the Controller class

Date Posted 18 Mar 2014, 12:59 PM
Author Brainy Solutions
Views 792
;