示例#1
0
        private CustomerDto InternalGetCustomer(int customerId)
        {
            Customer customer = WidgetDataLayer.GetCustomer(customerId);
            CustomerDto customerDto = new CustomerMapper().MapTo(customer, new CustomerDto());

            return customerDto;
        }
示例#2
0
        public IList<CustomerDto> GetCustomers()
        {
            IList<Customer> customerList = WidgetDataLayer.GetCustomers();
            IList<CustomerDto> customerDtoList = new CustomerMapper().MapTo(customerList, new List<CustomerDto>());

            return customerDtoList;
        }