public static async Task <object> ExecuteApiPrereq(string uniqueId, AuthProvider provider, bool useBeta) { var apiEndPoint = ApiEndPoint(useBeta); switch (uniqueId) { case "Group-0-Item-0": case "Group-0-Item-1": case "Group-0-Item-2": case "Group-0-Item-3": case "Group-0-Item-4": case "Group-0-Item-5": case "Group-0-Item-6": case "Group-0-Item-7": case "Group-0-Item-8": case "Group-0-Item-10": case "Group-1-Item-7": return(await GetNotebooksExample.GetAllNotebooksExpand(false, provider, apiEndPoint)); case "Group-1-Item-1": return(await GetPagesExample.GetAllPages(false, provider, apiEndPoint)); case "Group-1-Item-6": return(await GetPagesExample.GetAllPages(false, provider, apiEndPoint)); case "Group-2-Item-2": return(await GetNotebooksExample.GetAllNotebooks(false, provider, apiEndPoint)); case "Group-2-Item-4": return(await GetSectionsExample.GetAllSections(false, provider, apiEndPoint)); case "Group-2-Item-9": return(await GetNotebooksExample.GetAllNotebooks(false, provider, apiEndPoint)); case "Group-2-Item-12": return(await GetNotebooksExample.GetAllNotebooks(false, provider, apiEndPoint)); case "Group-2-Item-13": return(await GetSectionGroupsExample.GetAllSectionGroups(false, provider, apiEndPoint)); case "Group-2-Item-14": return(await GetNotebooksExample.GetAllNotebooks(false, provider, apiEndPoint)); case "Group-2-Item-15": return(await GetSectionGroupsExample.GetAllSectionGroups(false, provider, apiEndPoint)); case "Group-3-Item-0": return(await GetPagesExample.GetAllPages(false, provider, apiEndPoint)); case "Group-3-Item-1": case "Group-4-Item-0": return(await GetPagesExample.GetAllPages(false, provider, apiEndPoint)); } return(null); }