public IHttpActionResult Add(string title)
        {
            if (!ModelState.IsValid)
            {

            }

            Comment comment = new Comment();
            //  comment.CommentAdd += Comment_CommentAdd;
            comment.Title = title ?? string.Empty;
            comment.Do();
            return Json(comment);
        }
Esempio n. 2
0
 public CommentArgs(Comment comment)
 {
     this.Comment = comment;
 }
Esempio n. 3
0
 public CommentArgs(Comment comment)
 {
     this.Comment = comment;
 }