var uniq = allvalues.GroupBy(x => x.Id).Select(y=>y.First()).Distinct();
var uniqueCategories = repository.GetAllProducts() .Select(p=>p.Category) .Distinct();