public ActionResult AddUserBackRule(MD_UserBackRate ruleinfo) { ViewData["referer"] = ShopUtils.GetAdminRefererCookie(); //接收参数名称不能与提交的参数名相同(不区分大小写) if (ModelState.IsValid) { bool result = Lottery.AddUserBackRule(ruleinfo); if (result) { return(PromptView("保存成功")); } else { return(PromptView("保存失败")); } } return(View(ruleinfo)); }