Add SetCancelledStatus method
This commit is contained in:
parent
55bd3bf0d0
commit
20cd4003f9
@ -166,6 +166,28 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.O
|
||||
//Call Domain Event
|
||||
}
|
||||
|
||||
public void SetCancelledStatus()
|
||||
{
|
||||
switch(OrderStatus.From(_orderStatusId))
|
||||
{
|
||||
//case OrderStatus.Submited:
|
||||
// _description = "";
|
||||
// break;
|
||||
//case OrderStatus.StockConfirmed:
|
||||
// _description = "";
|
||||
// break;
|
||||
//case OrderStatus.Paid:
|
||||
// _description = "";
|
||||
// break;
|
||||
//case OrderStatus.Shipped:
|
||||
// _description = "";
|
||||
// break;
|
||||
|
||||
}
|
||||
|
||||
_orderStatusId = OrderStatus.Cancelled.Id;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void AddOrderStartedDomainEvent(string userId, int cardTypeId, string cardNumber,
|
||||
|
Loading…
x
Reference in New Issue
Block a user