static void Main(string[] args) { Company companyName = MyCollection(); while (true) { Menu(); Operation op; Enum.TryParse(Console.ReadLine(), out op); switch (op) { case Operation.HireAnemployee: { Chose(); } break; case Operation.FireAnEmployee: { Company employes = companyName; employes.DeleteEmployee(); } break; case Operation.ToPromote: { Company employes = companyName; Console.WriteLine("Enter Bonus"); decimal result; decimal.TryParse(Console.ReadLine(), out result); employes.PromoteAnEmployee(result); } break; case Operation.Demote: { Company employes = companyName; Console.WriteLine("Enter Bonus"); decimal result; decimal.TryParse(Console.ReadLine(), out result); employes.DemoteEmployee(result); } break; default: { Console.WriteLine("Mistake. Make your choice \n" + "press any button to continue"); Console.ReadKey(); } break; } } }