public bool addComment(string userId, string text, string postId) { Comment newComment = new Comment() { id = DateTimeUtils.getKeyTimeStamp(), uid = userId, post_id = postId, content = text, time = DateTime.Now }; return(commentDao.insertComment(newComment)); }