Last active
February 24, 2018 09:41
-
-
Save Ibro/8c5d2a02ef8426763d2f8faaa1592ce2 to your computer and use it in GitHub Desktop.
ModelState Validation - https://codingblast.com/asp-net-core-global-model-validation/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!ModelState.IsValid) | |
{ | |
return BadRequest(ModelState); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment