public IEnumerable <ProductInfoToken> GetFavorites(string id) { return(_userPreferencesRepository.AllFavorites(id).Select(c => new ProductInfoToken { id = c.Key, name = c.Value })); }
public IEnumerable <ProductInfoToken> GetFavorites(string id) { return(_userPreferencesRepository.AllFavorites(id).Select(c => new ProductInfoToken { id = c.Key, name = c.Value })); }