Example #1
0
        static void Main(string[] args)
        {
            CarManager carManager = new CarManager(new EfCarDal());
            var        result     = carManager.GetByPrice(200, 300);

            foreach (var car in result)
            {
                Console.WriteLine(car.ColorId);
            }
        }
Example #2
0
        private static void SortByPrice(CarManager carManager)
        {
            int a = 1;

            Console.WriteLine("Fiyatlarına göre Sıralama\n----------------------------------------");
            foreach (var car in carManager.GetByPrice())
            {
                Console.WriteLine("{0}.Fiyat:{1} Çıkış Yılı:{2}\n", a, car.DailyPrice, car.ModelYear);
                a++;
            }
            Console.WriteLine("----------------------------------------");
        }