Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create sample with ModelState.AddModelError #110

Closed
Rick-Anderson opened this issue Dec 8, 2022 · 2 comments
Closed

Create sample with ModelState.AddModelError #110

Rick-Anderson opened this issue Dec 8, 2022 · 2 comments
Assignees
Labels
reQUEST Triggers an issue to be imported into Quest

Comments

@Rick-Anderson
Copy link
Contributor

In https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/mvc/models folder

Use in memory DB.
also show how to add a model error to the model, not the property:

ModelState.AddModelError(string.Empty, "My error message");

see dotnet/AspNetCore.Docs#27861

@sammychinedu2ky
Copy link
Contributor

@sammychinedu2ky

@Rick-Anderson Rick-Anderson self-assigned this Feb 27, 2023
@Rick-Anderson Rick-Anderson added reQUEST Triggers an issue to be imported into Quest and removed reQUEST Triggers an issue to be imported into Quest labels Feb 27, 2023
@Rick-Anderson
Copy link
Contributor Author

Fixed in #113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reQUEST Triggers an issue to be imported into Quest
Projects
No open projects
Development

No branches or pull requests

2 participants