Skip to content

Comments

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

Merged
ardalis merged 5 commits intoardalis:mainfrom
jdrames:main
Sep 11, 2024
Merged

Add Result.Created void methods so that return Result type is implicitly handled.#200
ardalis merged 5 commits intoardalis:mainfrom
jdrames:main

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
@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