Search Results for

    Show / Hide Table of Contents

    Class SRModelStateDictionaryExtensions

    Contains extension methods that convert an instance of ModelStateDictionary into an instance of type Result.

    Inheritance
    Object
    SRModelStateDictionaryExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright ©2023 SimpleResults