What is the best way to return errors in api controllers?
What is the best way to return errors in asp.net core api controllers?
i currently use
But are the better ways to do it?
i currently use
But are the better ways to do it?
return Problem("Some error message", statusCode: 400);