Class SRModelStateDictionaryExtensions
Contains extension methods that convert an instance of ModelStateDictionary into an instance of type Result.
Inherited Members
Namespace: SimpleResults
Assembly: SimpleResults.AspNetCore.dll
Syntax
public static class SRModelStateDictionaryExtensions
Methods
| Name | Description |
|---|---|
| BadRequest(ModelStateDictionary) | Represents a validation error that prevents the controller action from completing. |
| BadRequest(ModelStateDictionary, String) | Represents a validation error that prevents the controller action from completing. |
| Invalid(ModelStateDictionary) | Represents a validation error that prevents the controller action from completing. |
| Invalid(ModelStateDictionary, String) | Represents a validation error that prevents the controller action from completing. |
| IsFailed(ModelStateDictionary) | Checks if the model state is failed. |