示例#1
0
        public async Task <ActionResult> GetLoad()
        {
            Load load = new Load();
            var  AutosVehiclesController = new AutosVehiclesController();
            var  CarMakesController      = new CarMakesController();

            load.AutosVehicleF = (IEnumerable <AutosVehicle>) await AutosVehiclesController.GetFeaturedAutos();

            load.CarMake = (IEnumerable <CarMake>) await CarMakesController.GetCarMake();

            return(View("Featured_cars", load));
        }
        public async Task <ActionResult> GetLoad()
        {
            Load load = new Load();
            var  AutosVehiclesController = new AutosVehiclesController();
            var  CarMakesController      = new CarMakesController();

            load.AutosVehicleF = (IEnumerable <AutosVehicle>) await AutosVehiclesController.GetFeaturedAutos();

            load.CarMake = (IEnumerable <CarMake>) await CarMakesController.GetCarMake();

            UserCookie uc = GetCookie();

            ViewBag.Value  = uc.Value1;
            ViewBag.Expiry = uc.Expiry;
            return(View("Featured_cars", load));
        }
示例#3
0
        public PartialViewResult RenderCarMake()
        {
            var CarMake = new CarMakesController();

            return(PartialView(CarMake.GetCarMake()));
        }