Ejemplo n.º 1
0
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(int channel_id, int article_id)
        {
            string channelName = new BLL.site_channel().GetChannelName(channel_id);//查询频道名称

            if (string.IsNullOrEmpty(channelName))
            {
                return(false);
            }
            string content = dal.GetContent(channelName, article_id);         //获取信息内容
            bool   result  = dal.Delete(channelName, channel_id, article_id); //删除内容

            if (result && !string.IsNullOrEmpty(content))
            {
                FileHelper.DeleteContentPic(content, sysConfig.webpath + sysConfig.filepath); //删除内容图片
            }
            return(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(int id)
        {
            string content = dal.GetContent(id); //获取信息内容
            bool   result  = dal.Delete(id);

            if (result && !string.IsNullOrEmpty(content))
            {
                Utils.DeleteContentPic(content, siteConfig.webpath + siteConfig.filepath); //删除内容图片
            }
            return(result);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 删除一条数据
 /// </summary>
 public bool Delete(int id)
 {
     return(dal.Delete(id));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 删除一条数据
 /// </summary>
 public bool Delete(int channel_id, int id)
 {
     return(dal.Delete(channel_id, id));
 }