Exemple #1
0
        public IActionResult SetComment(Comment comment, Post post)
        {
            User user = new User();

            user.Id        = (int)HttpContext.Session.GetInt32("Id");
            comment.Posted = DateTime.Now;
            _commentLogic.SetComment(comment, post, user);
            return(RedirectToAction("NewsFeed", "Home"));
        }