Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

Commented Issue: Doesn't hook up to MVC ApiControllers [7116]

$
0
0
Hi,

I'm trying to use fluent validation for my MVC 4 WebApi project.
But it only seems to work on controllers that are inherited from the Controller type.

When I use MyController : Controller -> works fine (ModelState.IsValid returns False)
but when I use MyController :ApiController ... nothing.

How can I make this work on the WebApi ?
Comments: Please provider the documentation how to install as a model validator provider for Web API.

Viewing all articles
Browse latest Browse all 1917

Trending Articles



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