Exemplo n.º 1
0
            public async Task <CommandResult> Handle(
                Command request,
                CancellationToken cancellationToken)
            {
                Suggestion aggregate = new Suggestion(request.PurchaseOrderLineId);

                await documentStore.StoreAsync(
                    request.PurchaseOrderLineId.ToString(),
                    aggregate.ToDocument());

                return(CommandResult.Void);
            }