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); }
public CommentArgs(Comment comment) { this.Comment = comment; }