Ejemplo n.º 1
0
        public List <Model.VO.PackageVO> GetAllPackages()
        {
            PackageData      packageData   = new PackageData();
            List <PackageVO> packageVOList = new List <PackageVO>();

            DataSet ds = packageData.GetAllPackages();

            List <PackagePO> packagePOList = ds.GetEntity <List <PackagePO> >();

            if (packagePOList != null && packagePOList.Count > 0)
            {
                packagePOList.ForEach(i =>
                {
                    packageVOList.Add(Mapper.Map <PackagePO, PackageVO>(i));
                });
            }


            return(packageVOList);
        }