public IList <Speaker> FindSpeakers(LuisResult result) { IList <Speaker> speakers = new List <Speaker>(); EntityRecommendation entity; var svc = new AzureSearchService(); if (result.TryFindEntity("Speaker", out entity)) { var speaker = entity.Entity; speakers = svc.FindSpeakers(speaker); } else if (result.TryFindEntity("Company", out entity)) { var company = entity.Entity; speakers = svc.FindSpeakers(company); } return(speakers); }