Take a look at the code below.
When Get() calls Foobar() and Foobaz(), the ActionFilters that decorate Foobar() and Foobaz() are not invoked.
How can I call these other two controller actions from within Get() in a way that also causes the SomeAction and AnotherAction filters to execute?
public class Features : Controller
{
[SomeAction]
public bool Foobar(string id = null)
{
return true;
}
[AnotherAction]
public bool Foobaz()
{
return false;
}
public JsonResult Get()
{
return this.JsonResult(new Dictionary<string, bool>()
{
{ "foobar", this.Foobar() },
{ "foobaz", this.Foobaz() }
});
}
}