public async Task <IEnumerable> Get(string dataStore, string searchTerm) { string term = WebUtility.UrlDecode(searchTerm); if (dataStore == "sql") { return(await SqlDataAccess.DoQuery(term, _configuration.GetValue <string>("SqlConnectionString"))); } else if (dataStore == "csql") { return(await _cosmosSqlData.DoQuery(term)); } else if (dataStore == "cmongo") { return(_cosmosMongoData.DoQuery(term)); } else { throw new Exception("Unknown data store type"); } }