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); }
public UserDataModel Post(UserDataModel model) { model.PersistNotNull(); return(UserDataModel.Create(HttpContext.Current.Session)); }
public UserDataModel Get() { return(UserDataModel.Create(HttpContext.Current.Session)); }