public IActionResult ViewTopic([FromRoute] string username, [FromRoute] int id) { var user = userService.FindUserUsername(username); var topic = topicService.FindTopicByID(id); var modelView = new UserTopicPosts(); modelView.User = user; modelView.Topic = topic; modelView.Posts = topicService.GetAllPosts(); return(View(modelView)); }