© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
Dreams

❔ Does Required attribute work for controller parameters?

If the POST is missing either
Email
Email
or
Password
Password
, does ASP.NET return a 400? If not, what reason does the author have for putting
Required
Required
attributes on a DTO?
Capture.PNG
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ required attribute vs [Required] annotation
C#CC# / help
12mo ago
Why does this code have a Required attribute?
C#CC# / help
4y ago
Roslyn analyzer for checking if method contains proper parameters based on used attribute.
C#CC# / help
4y ago
How do these parameters even work?
C#CC# / help
2y ago