示例#1
0
        public async Task <ActionResult> InformationEdit(Information model)
        {
            if (model.ImgUrls != null)
            {
                model.ImgUrl = string.Join(";", model.ImgUrls).Replace(ConfigurationManager.AppSettings["ServerUrl"], string.Empty);
            }

            bool flag = await _informationService.ModifyInformation(model);

            ViewBag.ErrorMessage = flag ? "编辑成功" : "编辑失败";
            return(await InformationEdit(model.ID));
        }