public async Task <Order> ResetOrderAsync([GraphQLType(typeof(ResetOrderInputType))][GraphQLName("input")] ResetOrderCommand input, [Service] ISheaftMediatr mediatr, OrdersByIdBatchDataLoader ordersDataLoader, CancellationToken token) { await ExecuteAsync(mediatr, input, token); return(await ordersDataLoader.LoadAsync(input.OrderId, token)); }
public async Task <Order> CreateOrderAsync( [GraphQLType(typeof(CreateConsumerOrderInputType))][GraphQLName("input")] CreateConsumerOrderCommand input, [Service] ISheaftMediatr mediatr, OrdersByIdBatchDataLoader ordersDataLoader, CancellationToken token) { var result = await ExecuteAsync <CreateConsumerOrderCommand, Guid>(mediatr, input, token); return(await ordersDataLoader.LoadAsync(result, token)); }