private void SetAuditId(int personid) { SessionVariables.RequestProfile.AuditId = Convert.ToInt32(personid); PerferenceUtility.RefreshUserPreferencesCache(); ApplicationCommon.SetApplicationUserFullName(); ApplicationCommon.SetApplicationUserRoles(); }
public static Dictionary <string, string> GetUserPreferencesForActivityStream(string upCategory) { var settings = new Dictionary <string, string>(); //Get Current User's Preferences if (SessionVariables.UserPreferences == null) { PerferenceUtility.RefreshUserPreferencesCache(); } var listKeys = new List <string>() { DateRangeKey , BackGroungColorKey , WidthKey , DataTypeKey , HeightKey , ActivityStreamAuditId , ActivityStreamPageSize , ActivityStreamTitle , ActivityStreamPagingStyle , ActivityStreamGroupInterval }; var userPreferences = SessionVariables.UserPreferences; foreach (var upKey in listKeys) { settings.Add(upKey, PerferenceUtility.GetUserPreferenceByKey(upKey, upCategory)); } return(settings); }