예제 #1
0
        public ActionResult Specials()
        {
            ViewBag.Message = "SPECIALS!!!!!";
            var repo  = new VehicleRepo();
            var model = new HomeViewModel();

            model.specials = repo.GetSpecials().ToList();

            return(View(model));
        }
예제 #2
0
        public ActionResult Index()
        {
            var jepo = new VehiclesJoinedRepo();
            var repo = new VehicleRepo();

            var model = new HomeViewModel();

            model.vehicles = jepo.GetAllVehiclesJoined();
            model.specials = repo.GetSpecials();

            return(View(model));
        }
예제 #3
0
        public IEnumerable <Specials> Get()
        {
            var repo = new VehicleRepo();

            return(repo.GetSpecials());
        }