Ejemplo n.º 1
0
        public int DeleteAllComments(string id)
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.DeletePostComments(id));
        }
Ejemplo n.º 2
0
        public int DeleteCommentsById(string id)
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.Delete(id));
        }
Ejemplo n.º 3
0
        public int UpdateDislikesById(string id)
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.UpdateDislikes(id));
        }
Ejemplo n.º 4
0
        public int CreateNewComment()
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.InsertComment(this));
        }
Ejemplo n.º 5
0
        public List <PostComment> GetAllCommentsById(string id)
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.SelectAllComments(id));
        }
Ejemplo n.º 6
0
        public string AutoIncrement()
        {
            PostCommentDAO dao = new PostCommentDAO();

            return(dao.Autoincrement());
        }