예제 #1
0
        public PartialViewResult CreateComment(int entryId, string message)
        {
            var comment = queries.CreateComment(entryId, message);

            return(PartialView("Comment", comment));
        }
예제 #2
0
 public CommentForApiContract PostNewComment(int id, CommentForApiContract contract) => _queries.CreateComment(id, contract);
예제 #3
0
 public CommentForApiContract PostNewComment(int id, CommentForApiContract contract)
 {
     return(queries.CreateComment(id, contract));
 }