Beispiel #1
0
 public ActionResult DelArticle(int ArticleID)
 {
     if (ArticleID > 0)
     {
         if (EFArticle.DelArticle(ArticleID))
         {
             return(RedirectToAction("ArticleManage"));
         }
     }
     return(View());
 }
Beispiel #2
0
    public virtual void DelArticle()
    {
        int Article_ID = tools.CheckInt(Request.QueryString["Article_ID"]);

        if (MyBLL.DelArticle(Article_ID, Public.GetUserPrivilege()) > 0)
        {
            Public.Msg("positive", "操作成功", "操作成功", true, "Article_list.aspx");
        }
        else
        {
            Public.Msg("error", "错误信息", "操作失败,请稍后重试", false, "{back}");
        }
    }