예제 #1
0
        public ActionResult Index()
        {
            _logger.Information("Getting all the cars..");
            var allCars          = _carManager.FindAll();
            var allCarViewModels = Mapper.Map <Car[], CarViewModel[]>(allCars.ToArray());

            return(View(allCarViewModels));
        }