예제 #1
0
        // GET: Car
        public ActionResult Index()
        {
            var carLogic = new CarLogic();

            var carList = carLogic.GetListAll();

            var model = new CarViewModel()
            {
                Cars        = carList,
                CountOfCars = carList.Count
            };

            return(View(model));
        }