Example #1
0
        public ActionResult EditBaseInfo(BaseInfoModel model)
        {
            ViewData["referer"] = ShopUtils.GetAdminRefererCookie();
            bool result = AdminBaseInfo.UpdateBaseInfo(model.BaseId, model.Title, model.Content);

            if (result)
            {
                return(PromptView("保存成功"));
            }
            else
            {
                return(PromptView("保存失败"));
            }
        }
Example #2
0
        public ActionResult PosterBaseInfo(BaseInfoModel baseinfo)
        {
            List <BaseInfoModel> listbase = AdminBaseInfo.GetBaseInfoList(4);

            BaseInfoModel hbinfo = listbase[0];

            hbinfo.Content = baseinfo.Content;
            bool result = AdminBaseInfo.UpdateBaseInfo(hbinfo.BaseId, hbinfo.Title, hbinfo.Content);

            if (result)
            {
                return(PromptView("保存成功"));
            }
            else
            {
                return(PromptView("保存失败"));
            }
        }