Ejemplo n.º 1
0
        public ActionResult Moderate(List <Comment> comments)
        {
            if (comments == null)
            {
                return(HttpNotFound());
            }

            foreach (var comment in comments)
            {
                if (comment.HasBeenModerated)
                {
                    PostRepository.AddModeratedCommentToPost(comment, comment.PostId);
                }
            }
            return(View("ModerationSucessfull"));
        }