Ejemplo n.º 1
0
        public static void Delete()
        {
            Console.WriteLine("Delete trainer: ");
            int id = Convert.ToInt32(Console.ReadLine());

            TrainerManager.DeleteTrainer(id);
        }
Ejemplo n.º 2
0
 public static void View()
 {
     Console.WriteLine("trainers: ");
     foreach (var trainer in TrainerManager.GetAllTrainers())
     {
         Console.WriteLine(trainer);
     }
 }
Ejemplo n.º 3
0
        public static void Add()
        {
            Console.WriteLine("Give trainer First Name: ");
            string firstname = Console.ReadLine();

            Console.WriteLine("Give trainer Last Name: ");
            string lastname = Console.ReadLine();

            Console.WriteLine("Give trainer Subject");
            string subject = Console.ReadLine();

            TrainerManager.CreateTrainer(firstname, lastname, subject);
        }
Ejemplo n.º 4
0
        public static void Update()
        {
            Console.WriteLine("Update trainer: ");
            int id = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Give trainer First Name: ");
            string firstname = Console.ReadLine();

            Console.WriteLine("Give trainer Last Name: ");
            string lastname = Console.ReadLine();

            Console.WriteLine("Give trainer Subject");
            string subject = Console.ReadLine();

            TrainerManager.UpdateTrainer(id, firstname, lastname, subject);
        }