public PartialViewResult CreateComment(int entryId, string message) { var comment = queries.CreateComment(entryId, message); return(PartialView("Comment", comment)); }
public CommentForApiContract PostNewComment(int id, CommentForApiContract contract) => _queries.CreateComment(id, contract);
public CommentForApiContract PostNewComment(int id, CommentForApiContract contract) { return(queries.CreateComment(id, contract)); }