Пример #1
0
        // GET: /<controller>/
        public IActionResult Index()
        {
            var repo   = new TRUCKRepository();
            var TRUCKS = repo.GetAllTRUCKS();

            return(View(TRUCKS));
        }
Пример #2
0
        public IActionResult ViewTRUCK(int id)
        {
            var repo     = new TRUCKRepository();
            var newTruck = repo.GetTruck(id);

            //var newRepo = new ReviewRepository();
            //var allReviews = newRepo.GetAllReviews();

            return(View(newTruck));
        }