コード例 #1
0
 public void Detail(long id, Action <ProductDetail> result)
 {
     commandFactory.NewQuery(id).Exec(product =>
     {
         result.Invoke(Assembler.Assembler.FromProductAggregation(product));
     }, err =>
     {
         result.Invoke(null);
     });
 }
コード例 #2
0
 public void Dec(long id, Action <ProductDetail> success, Action <Exception> error)
 {
     commandFactory.NewQuery(id).Exec(product =>
     {
         product.DecQuantity(shoppingRepository, shoppingRepositorySpecFactory, shoppingItemRepository, shoppingItemRepositorySpecFactory, decResult =>
         {
             success.Invoke(Assembler.Assembler.FromProductAggregation(product));
         }, error);
     }, error);
 }