public ActionResult StudentEnterSave() { JxLib.StudentController studentController = new JxLib.StudentController(); DatabaseLib.Tools tools = new DatabaseLib.Tools(); CacheLib.Cookie cookie = new CacheLib.Cookie(); string strParam = Request.Form.ToString(); System.Collections.Hashtable data = tools.paramToData(strParam); string user_id = cookie.GetCookie("user_id"); //深大驾校测试代码 data.Add("SchoolID", "1"); //data.Add("StudentID", "00001"); data.Add("StudentID", user_id); data.Add("EnterDate", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); studentController.save(data); studentController.saveEnter(data); if (studentController.Result) { return RedirectToRoute("enter-success"); } else { return RedirectToRoute("home"); } }