Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (ModelState.ContainsKey("Input.Card"))
- ModelState["Input.Card"].Errors.Clear();
- ModelState.Clear(); // Limpa todos
- foreach (var modelValue in ModelState.Values)
- {
- modelValue.Errors.Clear();
- }
Add Comment
Please, Sign In to add comment