ApiResponseHelper: Ability to execute a command and return a custom action result
HeyJoel opened this issue · comments
Similar to RunWithResultAsync
, but allowing you to return a completely custom action result rather than data e.g. return a redirect response. Suggested signature:
public async Task<IActionResult> RunWithActionResultAsync<TActionResult>(Func<Task<TActionResult>> functionToExecute)
where TActionResult : IActionResult
{
// ....
}
Fixed, will be released in v0.10.1