예제 #1
0
        public static UserDataModel Create(HttpSessionState session)
        {
            var rv = new UserDataModel
            {
                DistritoSelected = GetSessionInt(session, distritoKey),
                BaseSelected     = GetSessionInt(session, baseKey),
                EmpleadoId       = Security.WebSecurity.AuthenticatedUser.EmpleadoId
            };

            return(rv);
        }
예제 #2
0
 public UserDataModel Post(UserDataModel model)
 {
     model.PersistNotNull();
     return(UserDataModel.Create(HttpContext.Current.Session));
 }
예제 #3
0
 public UserDataModel Get()
 {
     return(UserDataModel.Create(HttpContext.Current.Session));
 }