Пример #1
0
 public void ReturnItem(CourierCompany courier)
 {
     if (checkoutDone == 1)
     {
         courier.returnPickup(TotalAmmount);
     }
     else
     {
         Console.WriteLine("You have got nothing to return to us");
     }
 }
Пример #2
0
        public void CheckOut(List <Cart> cart, CourierCompany courier)
        {
            Console.WriteLine("What kind of packing you need 1:Gift Wrap  2:Normal Wrap");
            int choice = Convert.ToInt32(Console.ReadLine());

            if (choice == 1)
            {
                courier.Packaging("Gift");
            }
            else
            {
                courier.Packaging("Normal");
            }
            foreach (var item in cart)
            {
                TotalAmmount = TotalAmmount + item._ItemCost;
                cart.Clear();
            }

            Console.WriteLine("Total Ammount of " + TotalAmmount + " Will be deducted from your registered Credit Card ");
            checkoutDone = 1;
            Console.WriteLine("Thank You For Shopping with US");
        }