we can validate mandatory fields by using Required attribute but what about model what if we pass empty post body ? i have check the controller i am getting null object and ModelState.IsValid is true on action executing even though there are required fields in model. is there any way to validate null/empty body ?
-
1Possible duplicate of stackoverflow.com/questions/19851352/…allan makura– allan makura2020-05-18 10:42:08 +00:00Commented May 18, 2020 at 10:42
Add a comment
|