Exemple #1
0
        /// <summary>
        /// GetList
        /// Calls [usp_selectAll_Package]
        /// </summary>
        public static List <Package> GetList()
        {
            List <PackageDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Package.GetList();

            if (lstDetails == null)
            {
                return(new List <Package>());
            }
            else
            {
                List <Package> lst = new List <Package>();
                foreach (PackageDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Package obj = new Rebound.GlobalTrader.BLL.Package();
                    obj.PackageId          = objDetails.PackageId;
                    obj.PackageName        = objDetails.PackageName;
                    obj.PackageDescription = objDetails.PackageDescription;
                    obj.Inactive           = objDetails.Inactive;
                    obj.UpdatedBy          = objDetails.UpdatedBy;
                    obj.DLUP = objDetails.DLUP;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Exemple #2
0
        /// <summary>
        /// DropDown
        /// Calls [usp_dropdown_Package]
        /// </summary>
        public static List <Package> DropDown()
        {
            List <PackageDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Package.DropDown();

            if (lstDetails == null)
            {
                return(new List <Package>());
            }
            else
            {
                List <Package> lst = new List <Package>();
                foreach (PackageDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.Package obj = new Rebound.GlobalTrader.BLL.Package();
                    obj.PackageId          = objDetails.PackageId;
                    obj.PackageDescription = objDetails.PackageDescription;
                    obj.PackageName        = objDetails.PackageName;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }