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
| Name | Description |
|---|
| Success | Indicates the status of the response. true if the operation was successful; otherwise, false. |
| InternalMessage | An internal message associated with the response, intended for logging or internal tracking. |
| ValidationErrorInfos | A list of validation error information objects that describe validation issues encountered during the operation. |
| Exception | An exception object representing any error that occurred during the operation. |
| Result | Contains the result of the operation, with the type specified by TResult. |
| Message | A public message associated with the response, intended for external use or display. |
Generic Types
| Name | Description |
|---|
| TResult | Generic type of result property. |