public void ClientMenu(Order order) { Boolean exit = false; do { Console.Clear(); Console.WriteLine("Cliente\n\n1- Agregar Producto \n2- Ver orden\n3- Salir"); int opc = Int16.Parse(Console.ReadLine()); switch (opc) { case 1: Console.Clear(); Console.WriteLine(productLo.GetProductsString()); Console.WriteLine("Digite el ID del producto: "); int productId = Int16.Parse(Console.ReadLine()); if (productLo.SearchByID(productId) != null) { Product product = productLo.SearchByID(productId); Console.WriteLine(clientLo.AddProductToAnOrder(order.ID, product)); Console.ReadKey(); } else { Console.WriteLine("ID Producto incorrecto"); } break; case 2: Console.Clear(); Console.WriteLine(orderLo.GetOrderString(order)); Console.ReadKey(); break; case 3: exit = true; break; } } while (!exit); }