Search Results for

    Show / Hide Table of Contents

    Method ToHttpResult

    | Improve this Doc View Source

    ToHttpResult<T>(PagedResult<T>)

    Converts the PagedResult<T> to an implementation of IResult.

    Declaration
    public static IResult ToHttpResult<T>(this PagedResult<T> result)
    Parameters
    Type Name Description
    PagedResult<T> result

    An instance of type PagedResult<T>.

    Returns
    Type Description
    IResult

    An instance of IResult.

    Type Parameters
    Name Description
    T

    The type of objects to enumerate.

    Exceptions
    Type Condition
    NotSupportedException

    Status is invalid.

    | Improve this Doc View Source

    ToHttpResult<T>(ListedResult<T>)

    Converts the ListedResult<T> to an implementation of IResult.

    Declaration
    public static IResult ToHttpResult<T>(this ListedResult<T> result)
    Parameters
    Type Name Description
    ListedResult<T> result

    An instance of type ListedResult<T>.

    Returns
    Type Description
    IResult

    An instance of IResult.

    Type Parameters
    Name Description
    T

    The type of objects to enumerate.

    Exceptions
    Type Condition
    NotSupportedException

    Status is invalid.

    | Improve this Doc View Source

    ToHttpResult<T>(Result<T>)

    Converts the Result<T> to an implementation of IResult.

    Declaration
    public static IResult ToHttpResult<T>(this Result<T> result)
    Parameters
    Type Name Description
    Result<T> result

    An instance of type Result<T>.

    Returns
    Type Description
    IResult

    An instance of IResult.

    Type Parameters
    Name Description
    T

    A value associated to the result.

    Exceptions
    Type Condition
    NotSupportedException

    Status is invalid.

    | Improve this Doc View Source

    ToHttpResult(Result)

    Converts the Result to an implementation of IResult.

    Declaration
    public static IResult ToHttpResult(this Result result)
    Parameters
    Type Name Description
    Result result

    An instance of type Result.

    Returns
    Type Description
    IResult

    An instance of IResult.

    Exceptions
    Type Condition
    NotSupportedException

    Status is invalid.

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