public void Go() { Console.WriteLine("Do you want to Purchase?"); string response = Console.ReadLine(); if (response == "y") { mediator.Handle(ProcessType.Purchase); } else { mediator.Handle(ProcessType.Exit); } }
public void Go() { Console.WriteLine("Bye the item now?"); string response = Console.ReadLine(); if (response == "y") { Console.WriteLine("Thanks for your purchase"); } mediator.Handle(ProcessType.Exit); }