You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When returning an InvalidResult that is lacking an identifier (ie it has been instantiated with the constructor that takes just the ErrorMessage as a string), converting it into an ActionResult using the TranslateResultToActionResult attribute, the server will throw a System.ArgumentNullException and return StatusCode 500. I have created a minimal reproducible example here: https://github.com/uflowie/InvalidResult.
Expected Behavior
Using a parameterized constructor should instantiate a result that can be translated to an ActionResult without throwing unexpected Exceptions.