public IActionResult Index() { var forums = _forumService.GetAllForums() .Select(forum => new ForumListingModel { Id = forum.Id, Name = forum.Title, Description = forum.Description }); var model = new ForumIndexModel { ForumList = forums }; return(View(model)); }