Class ModelStateDictionaryExtensions
Adds an extension method to Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary objects to set a list of errors.
Namespace: XploRe.AspNetCore.Mvc.ModelBinding
Assembly: XploRe.AspNetCore.Mvc.dll
Syntax
public static class ModelStateDictionaryExtensions : Object
Methods
Name | Description |
---|---|
AddModelErrors(ModelStateDictionary, IEnumerable<String>) | Adds a list of error descriptions with an empty key to the model state. |