public async void SearchProjects(string Query) { //get the new results and write them into Results ProjectResults.Clear(); var searchResults = await projectAPI.GetBySearch(Query); foreach (var result in searchResults) { ProjectResults.Add(new ProjectViewModel(result)); } }
public async void SearchByCategory(int categoryId) { ProjectResults.Clear(); var searchResults = await projectAPI.GetByCategory(categoryId); }