public ActionResult Index() { _logger.Information("Getting all the cars.."); var allCars = _carManager.FindAll(); var allCarViewModels = Mapper.Map <Car[], CarViewModel[]>(allCars.ToArray()); return(View(allCarViewModels)); }