C# Class LunchVote.Filters.DayCreatedFilterAttribute

Inheritance: System.Web.Mvc.ActionFilterAttribute
Show file Open project: omockler/LunchVote

Public Methods

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

Called by the ASP.NET MVC framework before the action method executes. Used to ensure that there is a record created in the database for the current day. If there isn't a new day is created.

Method Details

OnActionExecuting() public method

Called by the ASP.NET MVC framework before the action method executes. Used to ensure that there is a record created in the database for the current day. If there isn't a new day is created.
public OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext The filter context.
return void