public IHttpActionResult Search(string query) { if (!string.IsNullOrEmpty(query) && query.Length > 1) { return(Ok(ThreatCategoryService.Search(query))); } else { return(Ok(new List <SimpleSearchResult>())); } }
public IHttpActionResult Search(string query) { if (!string.IsNullOrEmpty(query) && query.Length > 1) { return(Ok(ThreatCategoryService.Search(query))); } else { return(Ok(new List <SimpleSearchResult>())); } }