asp.net - ASP .NET Web API controller action's parameter is null but ModelState.IsValid still true, why? -
question says all, have web api controller action, takes poco. it's post action, , i'm intentionally not posting parameter action, modelstate.isvalid property still shows true. why be? there attribute have set on controller action , parameters enforce validation?
null valid value object. make properties in poco [required] enforce checks.
Comments
Post a Comment