public bool Delete(bool adjustInventory = true) { IsPendingReturn = false; QuantityPendingReturn = 0; Instances.Remove(PrimaryKey); TicketItemOption.DeleteAll(this, adjustInventory); return(Delete(PrimaryKey, adjustInventory)); }
private static void RestorePreviousTicketItemOptions(TicketItem ticketItem) { TicketItemOption.DeleteAll(ticketItem, true); foreach (TicketItemOption option in ticketItem._cachedItemOptions) { TicketItemOption.Add(option.TicketItemId, option.ItemOptionId, option.Type, option.ChangeCount); } }