Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Update sample application
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Briguglia committed Nov 2, 2019
1 parent 339fa96 commit 654d202
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ public async Task<CommandResponse> HandleAsync(CreateProduct command)
{
var product = new Product(command.AggregateRootId, command.Name, command.Description, command.Price);

var events = await Task.FromResult(product.Events);

return new CommandResponse
return await Task.FromResult(new CommandResponse
{
Events = events,
Events = product.Events,
Result = true
};
});
}
}
}

0 comments on commit 654d202

Please sign in to comment.