Пример #1
0
        public async Task <Picking> CreatePicking(
            [GraphQLType(typeof(CreatePickingInputType))][GraphQLName("input")]
            CreatePickingCommand input, [Service] ISheaftMediatr mediatr,
            PickingsByIdBatchDataLoader dataLoader, CancellationToken token)
        {
            var result = await ExecuteAsync <CreatePickingCommand, Guid>(mediatr, input, token);

            return(await dataLoader.LoadAsync(result, token));
        }
Пример #2
0
        public async Task <Picking> CompletePicking(
            [GraphQLType(typeof(CompletePickingInputType))][GraphQLName("input")]
            CompletePickingCommand input, [Service] ISheaftMediatr mediatr,
            PickingsByIdBatchDataLoader dataLoader, CancellationToken token)
        {
            await ExecuteAsync(mediatr, input, token);

            return(await dataLoader.LoadAsync(input.PickingId, token));
        }
Пример #3
0
        public async Task <Picking> SetPickingProductPreparedQuantity(
            [GraphQLType(typeof(SetPickingProductPreparedQuantityInputType))][GraphQLName("input")]
            SetPickingProductPreparedQuantityCommand input, [Service] ISheaftMediatr mediatr,
            PickingsByIdBatchDataLoader dataLoader, CancellationToken token)
        {
            await ExecuteAsync(mediatr, input, token);

            return(await dataLoader.LoadAsync(input.PickingId, token));
        }