public OrderItemStatus CreateOrderItemStatus(OrderItemType orderItemType, int orderItemStatus) { switch (orderItemType) { case OrderItemType.GiftCertificateItem: return(GiftCertificateItemStatus.GetStatusByStatusCode(orderItemStatus)); case OrderItemType.EventPackageItem: return(EventPackageItemStatus.GetStatusByStatusCode(orderItemStatus)); case OrderItemType.ProductItem: return(ProductItemStatus.GetStatusByStatusCode(orderItemStatus)); case OrderItemType.RefundItem: return(RefundItemStatus.GetStatusByStatusCode(orderItemStatus)); case OrderItemType.EventTestItem: return(EventTestItemStatus.GetStatusByStatusCode(orderItemStatus)); case OrderItemType.CancellationFee: return(CancellationFeeItemStatus.GetStatusByStatusCode(orderItemStatus)); default: throw new NotSupportedException ("The type of OrderItem this OrderDetail pertains to is not yet supported."); } }
public string UpdateImportProductItemReceive(ExtendedIdentityDbContext db, int productItemId, DateTime receivedDate, ProductItemStatus productItemStatus, string comments) { return(m_orderContractImpl.UpdateImportProductItemReceive( db, productItemId, receivedDate, productItemStatus, comments)); }