Closed wtygibbs closed 1 day ago
No idea why I didn't include that before now. Feel free to submit a PR if you have time, thanks!🙏
Can someone add required approval to the PR? I also unexpectedly found the mapping is missing
Hello, Would like to use this as well can we get this merged please Thanks :)
ResultStatusMap.AddDefaultMap()
is missing the mapping forResultStatus.Created
.I think this is an oversight because
ResultStatusMap.AddDefaultMap()
's documentation says it adds default mapping for all knownResultStatus
's.Calling
ResultExtensions.ToActionResult<T>(T Result)
throws aSystem.Collections.Generic.KeyNotFoundException
with the message:HttpStatusCode
should be added, or at least handle it and not throw an exceptionIf there is agreement on bullet point 2, I am open to working on it.