Sisk

Method

Router.ResolveActionResult

Namespace
Sisk.Core.Routing
Assembly
Sisk.Core.dll

ResolveActionResult(object?) #

Resolves the specified object into an valid HttpResponse using the defined value handlers or throws an exception if not possible.

C#
public HttpResponse ResolveActionResult(object? result)

Parameters #

result object?

The object that will be converted to an valid HttpResponse.

Returns #

HttpResponse

Remarks #

This method can throw exceptions. To avoid exceptions while trying to convert the specified object into an HttpResponse, consider using TryResolveActionResult.

Type to search the documentation and the API reference.