public IActionResult NewPost(ForumPost post)
        {
            var result = forumDao.SaveNewPost(post);

            TempData["Message_Success"] = true;

            return(RedirectToAction("Index"));
        }
        public IActionResult NewPost(ForumPost newPost)
        {
            if (!ModelState.IsValid)
            {
                return(View(newPost));
            }

            dao.SaveNewPost(newPost);
            TempData["msg"] = "Your message has been saved!";
            return(RedirectToAction("Index", "Forum"));
        }