I'm trying to hook Fluent Validation to my MVC WEB Api project, and it doesn't wanna work.
When I use MyController : Controller
-> works fine (ModelState.IsValid
returns False
)
but when I use MyController :ApiController
... nothing.
Does anyone have experience on how to hook those up ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…