Table of Contents

Method 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.

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(object?, out HttpResponse?).