/// <summary> /// Customer cancel thier tickect by using Tickect Handler Controller. /// </summary> /// <param name="myTicket"></param> public void CancelTicket(Ticket myTicket) { myTicket = null; Console.WriteLine("---Successfully Cancelled the Ticket---"); }
/// <summary> /// Firstly, this is one of the controller we have designed for processing ticket related operation. /// All these are the operations related to systems operations. /// /// Secondly, The class TicketHandler also acheive the High Cohesion, to keep all ticket related operation in the same class. /// The functionality which includes 'CancelTicket', 'ReserveTicket', 'SelectMeal', 'ModifySeat' , 'UpgradeSeat', 'ExtraBaggageRequest' and 'WebCheckIn' /// </summary> /// <param name="myTicket"></param> public Ticket BookTicket(Ticket myTicket) { Console.WriteLine("---Successfully Purchased the Ticket---"); return(myTicket); }