Example #1
0
 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;
 }
Example #2
0
 private void SetUserVM(UserViewModel userVM)
 {
     Session["UserVM"] = userVM;
 }