public IActionResult Index() { var championships = championshipService.GetAll(); var championshipViewModels = championships.Select(c => new ChampionshipViewModel { Id = c.Id, Name = c.Name, FoundedOn = c.FoundedOn, Description = c.Description, CountryId = c.Country.Id, CountryName = c.Country.Name }); return(View(championshipViewModels)); }