Search Results for

    Show / Hide Table of Contents

    Method Success

    | Improve this Doc View Source

    Success<T>(T)

    Represents a successful operation and accepts a values as the result of the operation.

    Declaration
    public static Result<T> Success<T>(T data)
    Parameters
    Type Name Description
    T data
    Returns
    Type Description
    Result<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Success<T>(T, String)

    Represents a successful operation and accepts a values as the result of the operation.

    Declaration
    public static Result<T> Success<T>(T data, string message)
    Parameters
    Type Name Description
    T data

    The value to be set.

    String message

    A message of success.

    Returns
    Type Description
    Result<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Success<T>(IEnumerable<T>, PagedInfo)

    Represents a successful operation and accepts a set of data and paged information as arguments.

    Declaration
    public static PagedResult<T> Success<T>(IEnumerable<T> data, PagedInfo pagedInfo)
    Parameters
    Type Name Description
    IEnumerable<T> data
    PagedInfo pagedInfo
    Returns
    Type Description
    PagedResult<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Success<T>(IEnumerable<T>, PagedInfo, String)

    Represents a successful operation and accepts a set of data and paged information as arguments.

    Declaration
    public static PagedResult<T> Success<T>(IEnumerable<T> data, PagedInfo pagedInfo, string message)
    Parameters
    Type Name Description
    IEnumerable<T> data

    A set of data.

    PagedInfo pagedInfo

    Some information about the page.

    String message

    A message of success.

    Returns
    Type Description
    PagedResult<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Success()

    Represents a successful operation.

    Declaration
    public static Result Success()
    Returns
    Type Description
    Result
    | Improve this Doc View Source

    Success(String)

    Represents a successful operation and accepts a messages that describes the result.

    Declaration
    public static Result Success(string message)
    Parameters
    Type Name Description
    String message

    A message of success.

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