protected System.Collections.IList SearchAllLists(Enums.enumListType pListType) { switch (pListType) { case Enums.enumListType.ConfiguredTopUpList: return(SBConfigValues.ListCredit); case Enums.enumListType.RegisteredCardsList: ICollection <Card> lRegisteredCardsList; lRegisteredCardsList = new ProductManager().GetRegisteredCardsList(this.NavigationState.LoggedInUserGUID, "CardRegistered", "CardRegistered.Account"); return(lRegisteredCardsList.ToList()); case Enums.enumListType.LoadLocationList: return(SBConfigValues.ListLoadLocation.ToList()); case Enums.enumListType.CountriesList: ICollection <SC_CountryCode> lCountriesList; lCountriesList = new ProductManager().GetCountriesList(); return(lCountriesList.ToList()); case enumListType.CardProfileList: ICollection <SC_CardProfile> lCardProfileList; lCardProfileList = new SchemeCodesManager().GetSchemeCode <SC_CardProfile>(); return(lCardProfileList.ToList()); default: return(null); } }
protected System.Collections.IList SearchAllLists(Enums.enumListType pListType) { switch (pListType) { case Enums.enumListType.ConfiguredTopUpList: return SBConfigValues.ListCredit; case Enums.enumListType.RegisteredCardsList: ICollection<Card> lRegisteredCardsList; lRegisteredCardsList = new ProductManager().GetRegisteredCardsList(this.NavigationState.LoggedInUserGUID, "CardRegistered", "CardRegistered.Account"); return lRegisteredCardsList.ToList(); case Enums.enumListType.LoadLocationList: return SBConfigValues.ListLoadLocation.ToList(); case Enums.enumListType.CountriesList: ICollection<SC_CountryCode> lCountriesList; lCountriesList = new ProductManager().GetCountriesList(); return lCountriesList.ToList(); case enumListType.CardProfileList: ICollection<SC_CardProfile> lCardProfileList; lCardProfileList = new SchemeCodesManager().GetSchemeCode<SC_CardProfile>(); return lCardProfileList.ToList(); default: return null; } }