public static void Actor() { int key; bool tmp = true; while (tmp) { PrintCMD.MenuItem(2); key = PrintCMD.ReadKey(); switch (key) { case 1: _controllActor.Read(); break; case 2: _controllActor.Create(); break; case 3: _controllActor.Update(); break; case 4: _controllActor.Delete(); break; case 0: tmp = false; break; } } }
public static void Film() { int key; bool tmp = true; while (tmp) { PrintCMD.MenuItem(3); key = PrintCMD.ReadKey(); switch (key) { case 1: _controllFilm.Read(); break; case 2: _controllFilm.Create(); break; case 3: _controllFilm.Update(); break; case 4: _controllFilm.Delete(); break; case 5: _controllFilm.Search(); break; case 0: tmp = false; break; } } }