public void PersistChartSettings(EpmChartUserSettings chartSettings) { var personalizationData = EpmChartUserSettingsToPersonalizationDataMapper.GetPersonalizationData(chartSettings); var personalizationsRepo = new PersonalizationDataRepository(_web, EpmChartUserSettings.Key); personalizationsRepo.PersistUserSettings(personalizationData); }
public EpmChartUserSettings GetChartSettings(PersonalizationSearchCriteria searchCriteria) { var personalizationsRepo = new PersonalizationDataRepository(_web, EpmChartUserSettings.Key); var personalizationsData = personalizationsRepo.GetUserSettings(searchCriteria); var chartSettingsToReturn = new EpmChartUserSettings(); chartSettingsToReturn.Hydrate(personalizationsData); return(chartSettingsToReturn); }