SyntaxFix
Write A Post
Hire A Developer
Questions
You can make it a KeyValuePair, so it will return a "IEnumerable<KeyValuePair<string, string>>"
"IEnumerable<KeyValuePair<string, string>>"
So, it will be like this:
.Select(i => new KeyValuePair<string, string>(i.category_id, i.category_name )).Distinct();