In an ApiController
action I need to close a connection to a database as soon as the action is finished executing.
Under a controller I override OnActionExecuted
to accomplish this.
How would I accomplish this under an ApiController
action?
Thanks
You could override the
ExecuteAsync
method: