public async Task ResumeAfterEnteringQuery(IDialogContext context, IAwaitable <string> result) { query = (await result)as string; //gets the user querry switch (searchType) { case searchWeb: { await BingSearch.SearchUlsterAsync(context, BING_KEY, query + " site:ulster.ac.uk"); //passes query to BingSearch Class break; } case searchImage: { await BingSearch.SearchImageAsync(context, BING_KEY, query); break; } } }