-
Hi, Is it possible to change the response body type of ASP.NET Core when ModelState automatically validates to false (If some fields are filled out incorrectly). Currently, my API responds with the standard body as:
Is it possible for me to change what should be included in the response body object? Like my own made class in C#? |
Beta Was this translation helpful? Give feedback.
Answered by
HadiSDev
Aug 17, 2020
Replies: 1 comment
-
Solved with this code:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
HadiSDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved with this code: