public SearchResultResponse GetSearchResults(SearchFilter filter) { if (filter != null) { switch (filter.SearchType) { case SearchType.Account: return(_searchRepository.GetAccounts(filter)); } } return(new SearchResultResponse()); }