Exemplo n.º 1
0
        private static void GetCarAll()
        {
            Console.WriteLine("-----------ARAÇLAR-----------");
            VehicleManager vehicleManager = new VehicleManager(new EfVehicleDal());
            var            result         = vehicleManager.GetCarDetails();

            if (result.Success == true)
            {
                foreach (var car in result.Data)
                {
                    Console.WriteLine("{0} / {1} / {2} / {3} / ", car.carName, car.brandName, car.colorName, car.DailyPrice);
                }
            }
            else
            {
                Console.WriteLine(result.Message);
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //CarTest();
            //BrandTest();
            //ColorTest();

            VehicleManager vehicleManager = new VehicleManager(new EfCarDal());

            var result = vehicleManager.GetCarDetails();

            if (result.Success == true)
            {
                foreach (var car in result.Data)
                {
                    Console.WriteLine(car.CarName + "/" + car.BrandName);
                }
            }
            else
            {
                Console.WriteLine(result.Message);
            }
        }