diff --git a/README.md b/README.md index 19a00b1..a4448a7 100644 --- a/README.md +++ b/README.md @@ -215,19 +215,6 @@ public async Task GetUser(Guid Id) } ``` -Or, using `Then`/`Else`: - -```csharp -[HttpGet("{id:guid}")] -public async Task GetUser(Guid Id) -{ - return await _mediator.Send(new GetUserQuery(Id)) - .Then(user => _mapper.Map(user)) - .Then(userResponse => Ok(userResponse)) - .Else(errors => ValidationProblem(errors.ToModelStateDictionary())); -} -``` - A nice approach, is creating a static class with the expected errors. For example: ```csharp diff --git a/src/ErrorOr.csproj b/src/ErrorOr.csproj index d8ca695..d20b4cf 100644 --- a/src/ErrorOr.csproj +++ b/src/ErrorOr.csproj @@ -8,7 +8,7 @@ ErrorOr - 1.7.0 + 1.8.0 Amichai Mantinband icon-square.png Result,Results,ErrorOr,Error,Handling