public ActionResult Index() { IVehicleRepository myRepo = VehicleRepositoryFactory.GetRepository(); SpecialsAndVehicles model = myRepo.GetSpecialsAndFeaturedVehicles(); return(View(model)); }
public SpecialsAndVehicles GetSpecialsAndFeaturedVehicles() { var model = new SpecialsAndVehicles { FeaturedVehicles = GTAVehicleList.GTAVehicles.Where(v => v.IsFeatured == true).ToList(), Specials = GTASpecialList.GTASpecials.ToList() }; return(model); }
public SpecialsAndVehicles GetSpecialsAndFeaturedVehicles() { var model = new SpecialsAndVehicles { FeaturedVehicles = GetAllVehicles().Where(v => v.IsFeatured == true).ToList(), Specials = GetAllSpecials().ToList() }; return(model); }