C# Class Core.Framework.Permissions.Helpers.PermissionsAttribute

Inheritance: System.Web.Mvc.ActionFilterAttribute
Show file Open project: coreframework/Core-Framework

Public Methods

Method Description
OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void

Called by the MVC framework before the action method executes.

PermissionsAttribute ( Int32 operation, Type entityType ) : System

Initializes a new instance of the PermissionsAttribute class.

Method Details

OnActionExecuting() public method

Called by the MVC framework before the action method executes.
public OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext The filter context.
return void

PermissionsAttribute() public method

Initializes a new instance of the PermissionsAttribute class.
public PermissionsAttribute ( Int32 operation, Type entityType ) : System
operation System.Int32 The operation.
entityType System.Type Type of the entity.
return System