static void Main(string[] args) { TicketDatabase ticketDatabase = new TicketDatabase(); var tevent = ticketDatabase.EventAdd("Event1", "Some desciption", 500); Console.WriteLine("TicketEventId: " + tevent.TicketEventId); var venue = ticketDatabase.VenueAdd("venue1", "Some address", "city1", "country1"); Console.WriteLine("VenueId: " + venue.VenueId); var venues1 = ticketDatabase.VenuesFind("ven"); foreach (var ven in venues1) { Console.WriteLine("Find(ven) - VenueId: " + ven.VenueId); } var venues2 = ticketDatabase.VenuesFind("y1"); foreach (var ven in venues2) { Console.WriteLine("Find(y1) - VenueId: " + ven.VenueId); } Console.WriteLine("Done!"); Console.ReadKey(); }
static void Main(string[] args) { TicketDatabase DatabaseTester = new TicketDatabase(); Console.WriteLine("Hello World!"); //venueadd tester //Console.WriteLine("enter name of venue"); //string query1 = Console.ReadLine(); //Console.WriteLine("enter adress"); //string query2 = Console.ReadLine(); //Console.WriteLine("enter city"); //string query3 = Console.ReadLine(); //Console.WriteLine("enter country"); //string query4 = Console.ReadLine(); //DatabaseTester.VenueAdd(query1, query2, query3, query4); Console.WriteLine("enter name of venue to remove"); string query1 = Console.ReadLine(); DatabaseTester.VenueRemove(query1); }
public List <Venue> Get(string query) { return(TicketDatabase.VenuesSpecific(query)); }