/// <summary> /// Returns dictionary of allowed options count. Key of the dictionary is the ID of option category. /// </summary> /// <param name="type">Object type (ignored).</param> /// <param name="ids">IDs of option categories which the dictionary is to be filled with.</param> protected SafeDictionary <int, IDataContainer> GetCountsDataHandler(string type, IEnumerable <int> ids) { DataSet countsDs = OptionCategoryInfoProvider.GetAllowedOptionsCount(ProductID, ids); return(countsDs.ToDictionaryById("OptionCategoryID")); }