예제 #1
0
        static void Main(string[] args)
        {
            var carController          = new CarsController();
            var detailController       = new DetailsController();
            var manufacturerController = new ManufacturerController();
            var manufacturerService    = new ManufacturerService();
            //var allCars = carController.GetAll();
            //var carById = carController.GetId(1);
            var allDetails = detailController.GetAll();

            //var detailById = detailController.GetId(2);
            //detailController.Insert(null);
            //detailController.Update(null);
            //detailController.Delete(1002);


            carController.Add(null);
            //carController.Update(null);
            //carController.Delete(6);

            var allManufacturers = manufacturerController.GetAll();
            //var richcars = manufacturerController.GetRich();
            var mostexpensive = manufacturerService.GetMostExpensive();

            Console.ReadKey();
        }
예제 #2
0
        static void Main(string[] args)
        {
            var detailController       = new DetailsController();
            var carsController         = new CarsController();
            var manufacturerController = new ManufacturerController();

            var det      = detailController.GetDetails();
            var vehicles = carsController.GetСars();

            var carViewModel = new CarViewModel()
            {
                Id   = 6,
                Name = "PAZIK",
            };

            var hz = detailController.GetDetails();

            var getmanufacturer = manufacturerController.GetAll();

            var getall = manufacturerController.GetCarManufacturerModels();
        }