Example #1
0
        private static void FindCarForColor(CarManager carManager, Color color, Car car, Brand brand)
        {
            GetColor();
            int colorID     = Convert.ToInt32(Console.ReadLine());
            var resultColor = carManager.GetAllByColorID(colorID);

            Console.WriteLine($"Filtreye uyan araçlar: \nId\tAraç Rengi\tModel\tÇıkış Yılı\tGünlük Fiyat\tAçıklama");
            foreach (var cars in resultColor.Data)
            {
                Console.WriteLine($"{car.CarID}\t{color.ColorName}\t{brand.BrandName}\t{car.ModelYear}\t\t{car.DailyPrice}\t\t{car.Description}");
            }
        }