public IActionResult AddComment(int BlogId, string CommentText) { Comment comment = new Comment(); comment.CommentText = CommentText; comment.CommentDateEdited = DateTime.Now; bdb_Context.AddComment(comment, BlogId, 1); //User id is default for now return(View("AllBlogs")); }