Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Sep 11, 2024

Conversation

jdrames
Copy link
Contributor

@jdrames jdrames commented Aug 13, 2024

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 ardalis merged commit 194d23c into ardalis:main Sep 11, 2024
1 check passed
@ardalis
Copy link
Owner

ardalis commented Sep 11, 2024

Thanks!@

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants