public async ValueTask <IResolveResult> EditReviewAsync(ResolverContext context)
        {
            var input  = context.GetArgument <EditReviewRequest>("input");
            var result = await _reviewServiceClient.EditReviewAsync(input);

            return(As(result.Result));
        }
 public async Task <IActionResult> Put(Guid reviewId, string content)
 {
     return(Ok(
                await _reviewServiceClient.EditReviewAsync(new EditReviewRequest
     {
         ReviewId = reviewId.ToString(),
         Content = content
     })
                ));
 }
 public async ValueTask <IResolveResult> EditReviewAsync(ResolverContext context)
 {
     return(await GrpcClientCatch(
                "review-service",
                async headers =>
     {
         var input = context.GetArgument <EditReviewRequest>("input");
         var result = await _reviewServiceClient.EditReviewAsync(input, headers);
         return As(result.Result);
     }));
 }