示例#1
0
        public IEnumerable<ICustomerVM> GetAllCustomers()
        {
            var toReturn = new List<ICustomerVM>();
            foreach (Customer customer in sampleRepo.GetAllCustomers()) {
                var cust = new CustomerVM(sampleRepo);
                cust.Load(customer);
                toReturn.Add(cust);
            }

            return toReturn.OrderBy(cust => cust.FirstName);
        }