public ActionResult EditApplySubmit() { try { EditApplyModel eam = new EditApplyModel(); eam.ApplierTel = Request.Form["applier_tel"]; eam.ApplyReason = Request.Form["reason"]; eam.RelatedCandidateId = Convert.ToInt32(Request.Form["relatedId"]); CandidateRepository cr = new CandidateRepository(); cr.ApplyEdit(eam); return(Content("<script>alert('申请成功,我们将根据您提供的信息更新相关页面,感谢您的参与!');location.replace('http://stu.fudan.edu.cn/hongtan/');</script>", "text/html")); } catch (Exception e) { return(Content("<script>alert('提交失败,请稍后重试。错误信息:" + e.Message.ToString() + "');location.replace('http://stu.fudan.edu.cn/hongtan/');</script>", "text/html")); } }