C
Join ServerC#
help
Return a custom ProblemDetails from a controller. How should I do it?
Ppox10/19/2022
There is BaseController.Problem but that creates a new problem details with some defaults.
Should I just do something like
Should I just do something like
return new ObjectResult(details)
{
ContentTypes = { "application/problem+json" },
StatusCode = details.Status,
};