public void m2() { int menu2; m2: Console.Clear(); Console.WriteLine("=================== READ ===================="); isimenu(); Console.Write("Tentukan Pilihanmu : "); menu2 = Convert.ToInt32(Console.ReadLine()); switch (menu2) { case 1: RoleController panggilrole = new RoleController(); panggilrole.GetAllRole(); Console.WriteLine("============================================="); Console.WriteLine("Sukses"); break; case 2: DepartmentController panggildept = new DepartmentController(); panggildept.GetAllDepartment(); Console.WriteLine("============================================="); Console.WriteLine("Sukses"); break; case 3: UserController panggiluser = new UserController(); panggiluser.GetAllUser(); Console.WriteLine("============================================="); Console.WriteLine("Sukses"); break; case 4: TypeController panggildd = new TypeController(); panggildd.GetAllTipe(); Console.WriteLine("============================================="); Console.WriteLine("Sukses"); break; case 5: CategoryController panggilcat = new CategoryController(); panggilcat.GetAllCategory(); Console.WriteLine("============================================="); Console.WriteLine("Sukses"); break; case 6: SubCategoryController panggilsubcat = new SubCategoryController(); panggilsubcat.GetAllSubCategory(); Console.WriteLine("============================================="); Console.WriteLine("Sukses"); break; case 7: TicketController panggiltck = new TicketController(); panggiltck.GetAllTicket(); Console.WriteLine("============================================="); Console.WriteLine("Sukses"); break; case 8: Console.Clear(); Console.WriteLine("============================================="); Console.WriteLine("Press Any Key..."); break; default: Console.WriteLine("Input Salah !!"); Console.WriteLine("\n"); goto m2; } Console.ReadKey(true); }