public IActionResult Index() { IEnumerable<SectionListingModel> sections = _sectionService.GetAll() .Select(section => new SectionListingModel { Id = section.Id, Title = section.Title, Description = section.Description }); var model = new SectionIndexModel { Sections = sections }; return View(model); }