AuthenticationAttribute Class |
Namespace: Velo.Web.Helper
The AuthenticationAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
| AuthenticationAttribute |
Initializes a new instance of the AuthenticationAttribute class.
Constructor without parameter
| |
| AuthenticationAttribute(Permissions) |
Initializes a new instance of the AuthenticationAttribute class.
Constructor with parameter
|
| Name | Description | |
|---|---|---|
| Permission |
Web controller authorization
|
| Name | Description | |
|---|---|---|
| OnActionExecuting |
Check web controller permission
(Overrides ActionFilterAttribute.OnActionExecuting(ActionExecutingContext).) |
| Name | Description | |
|---|---|---|
| ConvertDateFromSQL |
Convert SQL date include value null
(Defined by Extension.) | |
| ConvertDateToSQL |
Convert C# date type to SQL date type
(Defined by Extension.) |
using Velo.Web.Helper; [Authentication(Permission: Permissions.Administrator)] public class EmployeeController : Velo.Web.Helper.ControllerStandard { //... }
using Velo.Web.Helper; public class EmployeeController : Velo.Web.Helper.ControllerStandard { [Authentication(Permission: Permissions.Administrator)] public ActionResult Index() { //... } //... }