Ejemplo n.º 1
0
 /// <summary>
 /// 删除文章方法
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public int DeleteContent(int id)
 {
     try
     {
         ContentDAL dal = new ContentDAL();
         return(dal.DeleteContent(id));
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 2
0
        public static DataSet DeleteContent(ContentBO content)
        {
            DataSet ds = new DataSet();

            try
            {
                ds = ContentDAL.DeleteContent(content);
            }
            catch (Exception ex)
            {
                Log(ex, System.Reflection.MethodBase.GetCurrentMethod().Name);
            }
            return(ds);
        }