public IActionResult AddPost([FromRoute] string username, [FromRoute] int id, string name, string content) { var user = userService.FindUserUsername(username); var topic = topicService.FindTopicByID(id); topicService.CreatePost(name, content, user, topic); return(RedirectToAction("ViewTopic")); }