// Your service returns Result<T>publicasyncTask<Result<User>>GetUserAsync(intid){returnawaitResult<int>.Ok(id).Ensure(i=>i>0,"Invalid user ID").BindAsync(asynci=>await_repository.FindAsync(i)).Ensure(u=>u!=null,newNotFoundError("User",id));}// Your controller just returns the Result - auto-converted!app.MapGet("/users/{id}",async(intid)=>await_userService.GetUserAsync(id));// 🆕 v1.10.0: OneOf extensions also work!publicOneOf<ValidationError,NotFoundError,User>GetOneOfUser(intid){/* logic */}app.MapGet("/users/oneof/{id}",async(intid)=>GetOneOfUser(id));// Auto-converts OneOf too!// HTTP responses are automatically generated:// 200 OK with User data// 404 Not Found with ProblemDetails// 400 Bad Request with validation errors