public ActionResult Login_SureClick(tblUserInfo model) { //if (DateTime.Now > Convert.ToDateTime("2016-12-1")) //{ // X.Msg.Alert("注意", "系统已过期!").Show(); // return this.Direct(); //} //ScanFoundDelTask task = new ScanFoundDelTask(); //task.ScanTask(); UserInfoManage userManage = new UserInfoManage(); //userManage.Test(); //return this.Direct(); string s = userManage.UserLogin(model, Response); try { long lUserID = Convert.ToInt64(s); return(RedirectToAction("Index", "MainPage", new { area = "adminMain" })); } catch { X.Msg.Alert("错误", s).Show(); return(this.Direct()); } }