Ejemplo n.º 1
0
        public ActionResult Specials()
        {
            ViewBag.Message = "SPECIALS!!!!!";
            var repo  = new VehicleRepo();
            var model = new HomeViewModel();

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

            return(View(model));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 3
0
        public IEnumerable <Specials> Get()
        {
            var repo = new VehicleRepo();

            return(repo.GetSpecials());
        }