public List <PageData> GetAllPages(string aProviderName, Rendition rendition) { if (string.IsNullOrWhiteSpace(aProviderName)) { if (rendition.GetNativeFormatAllowed()) { aProviderName = "Native"; } else { aProviderName = "Default"; } } DataProvider lProvider = GetDataProvider(aProviderName); return(GetAllPages(lProvider, rendition)); }