cofoundry-cms / cofoundry

Cofoundry is an extensible and flexible .NET Core CMS & application framework focusing on code first development

Home Page:https://www.cofoundry.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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