public void ReturnItem(ICourierServiceHandler _CourierService) { if (checkoutDone == 1) { _CourierService.returnPickup(TotalAmmount); } else { Console.WriteLine("You have got nothing to return to us"); } }
public ECommerce() { _Customer = new Customer(); _MarketingPerson = new MarketingPerson(); _CartHandler = new CartHandler(); _AuthenticationHandler = new AuthenticationHandler(); _CourierServiceHandler = new CourierServiceHandler(); _CustomerHandler = new CustomerHandler(); _MarketingPersonHandler = new MarketingPersonHandler(); _ProductHandler = new ProductHandler(); _SalesPersonHandler = new SalesPersonHandler(); }
public void CheckOutCustomer(ICourierServiceHandler _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"); } checkoutDone = 1; Console.WriteLine("Thank You For Shopping with US"); }
public void CustomerCheckout(ISalesPersonHandler SalesStaff, ICourierServiceHandler _Courier) { char Choice; Console.WriteLine("Do You Want to Checkout(Y/N)"); Choice = Convert.ToChar(Console.ReadLine()); if (Choice == 'Y') { SalesStaff.CheckOutCustomer(_Courier); SalesStaff.CalculateTotalAmount(); CartHandler.CustomerCartList.Clear(); } if (Choice == 'N') { Console.WriteLine("You Can Continue Shopping"); } }