コード例 #1
0
ファイル: Promotions.cs プロジェクト: edwintjoseph/SCM_Task
        private Promotions SameSKUPromotion(Sku _item)
        {
            Promotions promotion = new Promotions();

            switch (_item.Code)
            {
            case "A":
                promotion.MinItemCount = 3;
                promotion.Price        = 130;
                promotion.ItemCode     = "A";
                break;

            case "B":
                promotion.MinItemCount = 2;
                promotion.Price        = 45;
                promotion.ItemCode     = "B";
                break;
            }
            return(promotion);
        }