public List<CustomerVO> GetCustomers(CustomerQueryEntity filter) { CustomerData customerData = new CustomerData(); List<CustomerVO> customerVOList = new List<CustomerVO>(); DataSet ds = customerData.GetCustomers(filter); List<CustomerPO> customerPOList = ds.GetEntity<List<CustomerPO>>(); customerPOList.ForEach(i => { customerVOList.Add(Mapper.Map<CustomerPO, CustomerVO>(i)); }); return customerVOList; }