public Task <ActionResult> GetItemByIdAsync(GetItemByIdParameters parameters, [FromServices] IGetItemByIdHandler handler, CancellationToken cancellationToken)
        {
            if (handler is null)
            {
                throw new ArgumentNullException(nameof(handler));
            }

            return(InvokeGetItemByIdAsync(parameters, handler, cancellationToken));
        }
 private static async Task <ActionResult> InvokeGetItemByIdAsync(GetItemByIdParameters parameters, IGetItemByIdHandler handler, CancellationToken cancellationToken)
 {
     return(await handler.ExecuteAsync(parameters, cancellationToken));
 }