Esempio n. 1
0
 /// <summary>
 /// 删除文章
 /// </summary>
 /// <returns></returns>
 public string DeleteContent()
 {
     try
     {
         int        id  = Convert.ToInt32(Request["contentId"]);
         ContentBLL bll = new ContentBLL();
         int        res = bll.DeleteContent(id);
         if (res > 0)
         {
             return("success");
         }
         return("failure:删除失败");
     }
     catch (Exception)
     {
         throw;
     }
 }