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); }