コード例 #1
0
 public async Task <Option <UserView, Error> > Handle(GetUser request, CancellationToken cancellationToken) =>
 (await _userViewRepository.GetAsync(request.Id))
 .WithException(Error.NotFound($"No user with id {request.Id} was found."));