ardalis / Result

A result abstraction that can be mapped to HTTP response codes if needed.
MIT License
847 stars 100 forks source link

Add Result.Created void methods so that return Result type is implicitly handled. #200

Closed jdrames closed 1 day ago

jdrames commented 1 month ago

Added Result.Created methods to Result.Void static methods so that returned Result type is implicitly handled.

This allows for return Result.Created(value); and return Result.Created(value, location); to work effortlessly and as expected the same way that Result.Success(value); currently works.

ardalis commented 1 day ago

Thanks!@