I'm trying somehow to pass parameter to actionfilter .
Please follow the code:
Controller:
[LogActionFilter(IsAuthenticated = Request.IsAuthenticated)]
//Tentativa 1 System.Web.HttpContext.Current.Request.IsAuthenticated
ActionFilter:
public class LogActionFilter : ActionFilterAttribute
{
public string IsAuthenticated { get; set; }
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
etc...
I get this error:
An object reference is required for the non-static field, method, or property 'Controller.HttpContext'