Search Results for

    Show / Hide Table of Contents

    Method ToActionResult

    | Improve this Doc View Source

    ToActionResult<T>(PagedResult<T>)

    Converts the PagedResult<T> to ActionResult<TValue> where TValue is a PagedResult<T>.

    Declaration
    public static ActionResult<PagedResult<T>> ToActionResult<T>(this PagedResult<T> result)
    Parameters
    Type Name Description
    PagedResult<T> result

    An instance of type PagedResult<T>.

    Returns
    Type Description
    ActionResult<PagedResult<T>>

    An instance of type ActionResult<TValue> where TValue is a PagedResult<T>.

    Type Parameters
    Name Description
    T

    The type of objects to enumerate.

    Exceptions
    Type Condition
    NotSupportedException

    Status is invalid.

    | Improve this Doc View Source

    ToActionResult<T>(ListedResult<T>)

    Converts the ListedResult<T> to ActionResult<TValue> where TValue is a ListedResult<T>.

    Declaration
    public static ActionResult<ListedResult<T>> ToActionResult<T>(this ListedResult<T> result)
    Parameters
    Type Name Description
    ListedResult<T> result

    An instance of type ListedResult<T>.

    Returns
    Type Description
    ActionResult<ListedResult<T>>

    An instance of type ActionResult<TValue> where TValue is a ListedResult<T>.

    Type Parameters
    Name Description
    T

    The type of objects to enumerate.

    Exceptions
    Type Condition
    NotSupportedException

    Status is invalid.

    | Improve this Doc View Source

    ToActionResult<T>(Result<T>)

    Converts the Result<T> to ActionResult<TValue> where TValue is a Result<T>.

    Declaration
    public static ActionResult<Result<T>> ToActionResult<T>(this Result<T> result)
    Parameters
    Type Name Description
    Result<T> result

    An instance of type Result<T>.

    Returns
    Type Description
    ActionResult<Result<T>>

    An instance of type ActionResult<TValue> where TValue is a Result<T>.

    Type Parameters
    Name Description
    T

    A value associated to the result.

    Exceptions
    Type Condition
    NotSupportedException

    Status is invalid.

    | Improve this Doc View Source

    ToActionResult(Result)

    Converts the Result to ActionResult<TValue> where TValue is a Result.

    Declaration
    public static ActionResult<Result> ToActionResult(this Result result)
    Parameters
    Type Name Description
    Result result

    An instance of type Result.

    Returns
    Type Description
    ActionResult<Result>

    An instance of type ActionResult<TValue> where TValue is a Result.

    Exceptions
    Type Condition
    NotSupportedException

    Status is invalid.

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