Class TranslateResultToActionResultAttribute
Translates the Result object to an ActionResult.
Result object can be:
- Result<T>
- ListedResult<T>
- PagedResult<T>
- Result
- A subtype of ResultBase.
Implements
Inherited Members
Namespace: SimpleResults
Assembly: SimpleResults.AspNetCore.dll
Syntax
public class TranslateResultToActionResultAttribute : ActionFilterAttribute, IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, IOrderedFilter, IFilterMetadata
Methods
Name | Description |
---|---|
OnActionExecuted(ActionExecutedContext) | Translates the Result object into a corresponding HTTP status code. This translation occurs after a controller action is executed. |