public JsonBuilderSearchIndicators(SearchIndicatorsParameters parameters) { _parameters = parameters; Parameters = _parameters; }
public IDictionary<int, List<int>> GetIndicatorsThatMatchText(string search_text, string restrict_to_profile_ids = "") { try { NameValueCollection nameValues = new NameValueCollection(); nameValues.Add(SearchIndicatorsParameters.ParameterSearchText, search_text); nameValues.Add(ParameterNames.RestrictToProfileId, restrict_to_profile_ids); var parameters = new SearchIndicatorsParameters(nameValues); return new JsonBuilderSearchIndicators(parameters).GetAreaTypeIdToIndicatorIdsWithData(); } catch (Exception ex) { Log(ex); throw; } }
public JsonBuilderSearchIndicators(HttpContextBase context) : base(context) { _parameters = new SearchIndicatorsParameters(context.Request.Params); Parameters = _parameters; }