// 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)); }
// 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)); }