Skip to main content

WrapResponse<TResult>

The WrapResponse<TResult> class extends WrapResponseBase to include a result of type TResult. This generic class represents a wrapped response that includes a response status, messages, validation errors, and the result of an operation.

Properties

NameDescription
InternalMessageAn internal message associated with the response, intended for logging or internal tracking.
SuccessIndicates the status of the response. true if the operation was successful; otherwise, false.
ValidationErrorInfosA list of validation error information objects that describe validation issues encountered during the operation.
MessageA public message associated with the response, intended for external use or display.
ExceptionAn exception object representing any error that occurred during the operation.
ResultContains the result of the operation, with the type specified by TResult.

Generic Types

NameDescription
TResultGeneric type of result property.