private UserViewModel GetUserVM() { UserViewModel userVM = null; try{ userVM = (UserViewModel)Session["UserVM"]; } catch { }; if (userVM == null) { User user = new Domain.Entities.User(); user.Login = "******"; userVM = new UserViewModel(user); Session["UserVM"] = userVM; } return userVM; }
private void SetUserVM(UserViewModel userVM) { Session["UserVM"] = userVM; }