Ejemplo n.º 1
0
        public ActionResult CarDetail(int id)
        {
            Car car = myService.GetById(id);

            ViewBag.note  = serviceRating.avgRate(car);
            ViewBag.note1 = serviceRating.avgRateUser(car.User);
            return(View(car));
        }
Ejemplo n.º 2
0
        // GET: Car/Details/5
        public ActionResult Details(int id)
        {
            Car car = myService.GetById(id);

            return(View(car));
        }
Ejemplo n.º 3
0
        public PartialViewResult RatingsControl(int carId)
        {
            Car car = serviceCar.GetById(carId);

            return(PartialView("_RatingsControl", car));
        }