public AddPhoneCheckPageViewModel GetAddPhoneCheckPageViewModel(long userId, int nowNode, int isSubmit) { AddPhoneCheckPageViewModel model = new AddPhoneCheckPageViewModel { IsLogin = true }; if (Step.stepTable[nowNode * isSubmit, Step.addPhoneCheck] || nowNode == Step.addPhoneCheck) { model.IsVisitLegal = true; model.TempNewPhone = TempPhone.GetTempNewPhoneByUserId(userId); } return(model); }
public AddPhoneCheckPageViewModel GetAddPhoneCheckPageViewModel() { string loginUserInfo = HttpContext.Session.GetString("loginUser"); long loginUserId = long.Parse(loginUserInfo.Split(",")[0]); int nowNode = int.Parse(HttpContext.Session.GetString("nowNode")); int isSubmit = int.Parse(HttpContext.Session.GetString("isSubmit")); AddPhoneCheckPageViewModel model = addPhoneCheckManage.GetAddPhoneCheckPageViewModel(loginUserId, nowNode, isSubmit); if (model.IsVisitLegal) { HttpContext.Session.SetString("nowNode", Step.addPhoneCheck.ToString()); HttpContext.Session.SetString("isSubmit", Step.isSubmitFalse.ToString()); } return(model); }