예제 #1
0
        private static void VehicleList(VehicleManager vehicleManager)
        {
            var result = vehicleManager.GetVehicleDetails();

            if (result.Success == true)
            {
                foreach (var vehicle in result.Data)
                {
                    Console.WriteLine(vehicle.VehicleName + " " + vehicle.BrandName + " " + vehicle.Color + " " + vehicle.DailyPrice);
                }
            }
            else
            {
                Console.WriteLine(result.Message);
            }
        }