예제 #1
0
        public async Task <ActionResult> InformationAdd(Information model)
        {
            if (!ModelState.IsValid)
            {
                return(View());
            }

            bool flag = await _informationService.InformationAdd(model);

            ViewBag.ErrorMessage = flag ? "保存成功" : "保存失败";
            return(InformationAdd());
        }