Exemple #1
0
        /// <summary>
        /// Method Name: GetList. Method Purpose: Get specific list type from SND Web
        /// Portal database. Author: Mena Armanyous. Modification Date: April 28, 2011.
        /// </summary>
        /// <returns>Return IList object used to hold the requested list type.</returns>
        /// <param name="pListType"></param>
        public override System.Collections.IList GetList(enumListType pListType)
        {
            try
            {
                switch (pListType)
                {
                case enumListType.ConfiguredTopUpList:
                    return(SBConfigValues.ListCredit);

                case enumListType.CardProfileList:
                    ICollection <SC_CardProfile> lCardProfileList;
                    lCardProfileList = lSchemeCodesManager.GetSchemeCode <SC_CardProfile>();
                    return(lCardProfileList.ToList());

                default:
                    return(SearchAllLists(pListType));
                }
            }
            catch (Exception ex)
            {
                if (!ExceptionHandler.IsUserFriendly(ex))
                {
                    ex.Data.Add("CardPurchaseNavigation", "GetList");
                    ExceptionHandler.LogException(ex);
                    return(null);
                }
                else
                {
                    throw ex;
                }
            }
        }
Exemple #2
0
 public abstract System.Collections.IList GetList(enumListType pListType); // Public method used to return a specific list elements.
 /// <summary>
 /// Method Name: GetList.
 /// Method Purpose: Get specific list type from SND Web Portal database.
 /// Author: Shady Yahia.
 /// Modification Date: April 28, 2011.
 /// </summary>
 /// <param name="pListType"></param>
 /// <returns>Return IList object used to hold the request list type.</returns>
 public override IList GetList(enumListType pListType)
 {
     return null;
 }
Exemple #4
0
 /// <summary>
 /// Method Name: GetList.
 /// Method Purpose: Get specific list type from SND Web Portal database.
 /// Author: Shady Yahia.
 /// Modification Date: April 28, 2011.
 /// </summary>
 /// <param name="pListType"></param>
 /// <returns>Return IList object used to hold the request list type.</returns>
 public override IList GetList(enumListType pListType)
 {
     return(null);
 }
 /// <summary>
 /// Method Name: GetList. Method Purpose: Get specific list type from SND Web
 /// Portal database. Author: Mena Armanyous. Modification Date: April 28, 2011.
 /// </summary>
 /// <returns>Return IList object used to hold the requested list type.</returns>
 /// <param name="pListType"></param>
 public override System.Collections.IList GetList(enumListType pListType)
 {
     try
     {
         switch (pListType)
         {
             case enumListType.ConfiguredTopUpList:
                 return SBConfigValues.ListCredit;
             case enumListType.CardProfileList:
                 ICollection<SC_CardProfile> lCardProfileList;
                 lCardProfileList = lSchemeCodesManager.GetSchemeCode<SC_CardProfile>();
                 return lCardProfileList.ToList();
             default:
                 return SearchAllLists(pListType);
         }
     }
     catch (Exception ex)
     {
         if (!ExceptionHandler.IsUserFriendly(ex))
         {
             ex.Data.Add("CardPurchaseNavigation", "GetList");
             ExceptionHandler.LogException(ex);
             return null;
         }
         else
         {
             throw ex;
         }
     }
 }
 public abstract System.Collections.IList GetList(enumListType pListType);