Ejemplo n.º 1
0
 /// <summary>
 /// 同意退货
 /// </summary>
 /// <param name="evnt"></param>
 /// <returns></returns>
 public Task <AsyncTaskResult> HandleAsync(AgreeReturnEvent evnt)
 {
     return(_commandService.SendAsync(CreatedNotificationCommand(
                                          evnt.AggregateRootId,
                                          "商家同意退货",
                                          NotificationType.StoreOrderAgreeReturn,
                                          evnt.AggregateRootId)));
 }
 public Task <AsyncTaskResult> HandleAsync(AgreeReturnEvent evnt)
 {
     return(TryUpdateRecordAsync(connection =>
     {
         return connection.UpdateAsync(new
         {
             Status = (int)StoreOrderStatus.AgreeReturn,
             Version = evnt.Version
         }, new
         {
             Id = evnt.AggregateRootId,
             //Version = evnt.Version - 1
         }, ConfigSettings.StoreOrderTable);
     }));
 }
Ejemplo n.º 3
0
 private void Handle(AgreeReturnEvent evnt)
 {
     _status = StoreOrderStatus.AgreeReturn;
 }