public ActionResult LonOn() { var userName = Request["userName"]; var passWord = Request["passWord"]; string errMsg = ""; string limlt = "";; string staffName = ""; int id = 0; int processTypeId = -1; string processTypeStr = ""; string user = ""; if (EmployeeManage.LonigOn(userName, passWord, out limlt, out user, out staffName, out id, out processTypeId, out processTypeStr, ref errMsg)) { Session["name"] = staffName; Session["id"] = id; Session["limit"] = limlt; Session["processTypeId"] = processTypeId; Session["processTypeStr"] = processTypeStr; Session["user"] = user; } return(Content(errMsg)); }