Get Attribute value in ViewEngine ASP.NET MVC 3
Posted
by
Kushan Fernando
on Stack Overflow
See other posts from Stack Overflow
or by Kushan Fernando
Published on 2012-09-26T09:36:26Z
Indexed on
2012/09/26
9:37 UTC
Read the original article
Hit count: 363
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.
© Stack Overflow or respective owner