static void Main(string[] args) { var menuOption = string.Empty; while (menuOption != "6") { //Add menu Console.WriteLine("Menu"); Console.WriteLine("1. Insert"); Console.WriteLine("2. Update"); Console.WriteLine("3. Read User"); Console.WriteLine("4. Delete User"); Console.WriteLine("5. Joins "); Console.WriteLine("6. Exit"); menuOption = Console.ReadLine(); //navigate menu options switch (menuOption) { case "1": AddUser(); break; case "2": UpdateUser(); break; case "3": ReadUser(); break; case "4": DeleteUser(); break; case "5": //Calling a method from Join Class Joins j = new Joins(); j.Join(); break; default: break; } } Exit(); }