Exemple #1
0
        /// <summary>
        /// 删除图片
        /// </summary>
        /// <returns></returns>
        public ActionResult DelPic()
        {
            var picid = Request["PicID"];
            int count = AdminsBLL.DelPicData(picid);

            if (count > 0)
            {
                return(OperContext.PackagingAjaxMsg(AjaxStatu.ok, "删除成功"));
            }
            else
            {
                return(OperContext.PackagingAjaxMsg(AjaxStatu.err, "删除失败"));
            }
        }
Exemple #2
0
        /// <summary>
        /// 删除图片
        /// </summary>
        /// <returns></returns>
        public ActionResult DelPicTure()
        {
            //验证登录
            if (!User.Identity.IsAuthenticated)
            {
                return(RedirectToAction("SignIn", "Home"));
            }
            var PicID = Request["PicID"];
            int count = AdminsBLL.DelPicData(PicID);

            if (count > 0)
            {
                return(OperContext.PackagingAjaxMsg(AjaxStatu.ok, "删除成功!"));
            }
            else
            {
                return(OperContext.PackagingAjaxMsg(AjaxStatu.err, "删除失败"));
            }
        }