Exemplo n.º 1
0
        public ActionResult NoDelete(int id)
        {
            if (!UserCommon.CheckBBSAdminRight(AdminType))
                return Content("��û��Ȩ��ִ�д˲���");

            bizBBSMain b = new bizBBSMain();
            string result = b.DeleteByAdmin(id, UserID, UserName, "", false);
            if (result == "")
                return Content("ȡ��ɾ�������ɹ�");
            else
                return Content(result);
        }
Exemplo n.º 2
0
        public ActionResult UnDeleteMain(int id)
        {
            bizBBSMain b = new bizBBSMain();
            b.DeleteByAdmin(id, UserID, UserName, "", false);

            return RedirectToAction("ForbidMain");
        }
Exemplo n.º 3
0
        public ActionResult DeleteMain(FormCollection f)
        {
            if (!UserCommon.CheckBBSAdminRight(AdminType))
                return JavaScript("<script language=javascript>alert('��û��Ȩ��ִ�д˲�����');window.close();</script>");

            int bbsMainID=int.Parse(f["bbsMainID"]);
            bizBBSMain b = new bizBBSMain();
            string result=b.DeleteByAdmin(bbsMainID, UserID, UserName, f["remark"].Trim(),true);
            if (result=="")
                return JavaScript("<script language=javascript>alert('ɾ���ɹ�');window.close();</script>");
            else
                return JavaScript("<script language=javascript>alert('" + result + "');window.close();</script>");
        }