public static bool AddPurchaseOrderItem(PurchaseShoppingCartItemInfo item, string POrderId) { SubsiteSalesProvider provider = SubsiteSalesProvider.Instance(); int currentPOrderItemQuantity = provider.GetCurrentPOrderItemQuantity(POrderId, item.SkuId); if (currentPOrderItemQuantity == 0) { return(provider.AddPurchaseOrderItem(item, POrderId)); } return(provider.UpdatePurchaseOrderQuantity(POrderId, item.SkuId, item.Quantity + currentPOrderItemQuantity)); }