private CustomerDto InternalGetCustomer(int customerId) { Customer customer = WidgetDataLayer.GetCustomer(customerId); CustomerDto customerDto = new CustomerMapper().MapTo(customer, new CustomerDto()); return customerDto; }
public IList<CustomerDto> GetCustomers() { IList<Customer> customerList = WidgetDataLayer.GetCustomers(); IList<CustomerDto> customerDtoList = new CustomerMapper().MapTo(customerList, new List<CustomerDto>()); return customerDtoList; }