Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

New Post: Do Filter-Overrides work in the current RC (MVC 5.0.0 RC 1)

$
0
0
Hi,

do Filter-Overrides work in the current RC ?

When I try to execute the action-method in the following listing, the DemoActionFilter, which extends FilterAttribute and inherits IActionFilter is executed although the action-method is annotated with OverrideActionFiltersAttribute.

What's wrong here?

Wishes,
Manfred
[DemoActionFilter]
public class HomeController : Controller
{

    [OverrideActionFiltersAttribute]
    public ActionResult Contact()
    {
        ViewBag.Message = "Your contact page.";

        return View();
    }
}

Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>