using Ophelias.Models; using Ophelias.Managers; using System.Data.SQLite; class Program { private static void GuestMode() { Reservation? activeReservation = null; Guest? activeGuest = null; TransactionTableManager tx = new TransactionTableManager(null); tx.UpdateTransactionInfo(1); void help() { Console.WriteLine( "Reservation Commands:\n" + "\treservation create\n" + "\treservation update\n" + "\treservation cancel\n" + "Account Commands:" + "\taccount create\n" + "\taccount update\n" + "Enter Q to quit.\n" ); return; } void CreateNewReservation() { Reservation newReservation; } while(true) { Console.WriteLine( "Welcome to the Ophelias Oasis Hotel Registration System!\n" + "Type help to get a full list of commands or enter a command.\n" + "Command: " ); string? input = Console.ReadLine(); switch(input) { case "help": help(); break; case "reservation create": break; case "reservation update": break; case "reservation cancel": break; case "account update": break; case "q": return; default: Console.WriteLine("Unknown command, enter help for more inforamtion."); break; } } } private void AdminMode() { void help() { Console.WriteLine( "Report Commands:\n" + "\treservation create\n" + "\treservation update\n" + "\treservation cancel\n" + "Account Commands:" + "\taccount create\n" + "\taccount update\n" + "Enter Q to quit.\n" ); return; } } static void Main() { SQLiteConnection.CreateFile("OpheliasOasis.sqlite"); bool run = true; while (run) { Console.WriteLine( "Are you an employee or customer?\n" + "1. Employee\n" + "2. Customer/ Guest" ); switch(Console.ReadLine().ToUpper()) { case "1": break; case "2": GuestMode(); break; case "Q": run = false; break; default: Console.WriteLine("You must either specify 1 for Employee, 2 for Customer/ Guest, or Q to quit.\n\n"); break; } } } }