예제 #1
0
        public ViewResult CarDetails(int id)
        {
            Car car = null;

            car = _allCars.getObjectCar(id);
            Company comp = null;

            comp          = db.Companies.Find(car.companyID);
            car.company   = comp;
            ViewBag.Title = "Page with current сar";
            return(View(car));
        }