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