The ASP.NET MVC provides a very great mechanism i.e., Action Filters. An action filter is an attribute.
Create a new class in your project and copy the following code:
Apply to Action [HttpGet] [SessionTimeout]
[
Collection
]
[
|
...
]
The ASP.NET MVC provides a very great mechanism i.e., Action Filters. An action filter is an attribute.
Create a new class in your project and copy the following code:
Apply to Action [HttpGet] [SessionTimeout]