コード例 #1
0
ファイル: PostComment.cs プロジェクト: KeroZee/FinTrack
        public int DeleteAllComments(string id)
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.DeletePostComments(id));
        }
コード例 #2
0
ファイル: PostComment.cs プロジェクト: KeroZee/FinTrack
        public int DeleteCommentsById(string id)
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.Delete(id));
        }
コード例 #3
0
ファイル: PostComment.cs プロジェクト: KeroZee/FinTrack
        public int UpdateDislikesById(string id)
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.UpdateDislikes(id));
        }
コード例 #4
0
ファイル: PostComment.cs プロジェクト: KeroZee/FinTrack
        public int CreateNewComment()
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.InsertComment(this));
        }
コード例 #5
0
ファイル: PostComment.cs プロジェクト: KeroZee/FinTrack
        public List <PostComment> GetAllCommentsById(string id)
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.SelectAllComments(id));
        }
コード例 #6
0
ファイル: PostComment.cs プロジェクト: KeroZee/FinTrack
        public string AutoIncrement()
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.Autoincrement());
        }