Get Attribute value in ViewEngine ASP.NET MVC 3
- by Kushan Fernando
I'm writting my own view engine.
public class MyViewEngine : RazorViewEngine
{
public override ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache)
{
// Here, how do I get attributes defined on top of the Action ?
}
}
ASP.NET MVC Custom Attributes within Custom View Engine
Above SO Question has how to get attributes defined on top of the Controller. But I need to get attributes defined on Action.