❔ filtering searches
So i have this field and i have a method
public static IEnumerable<SearchGroup> GetSearches(string filter = null)
that gets filter as parameter and needs to return new List<SearchGroup> but only with Searches thats Location property starts with filter value
tried doing it with Linq and i dont know how to make it
this is my attempt:
2 Replies