Beispiel #1
0
        public CustomerDto GetCustomer(int id)
        {
            var customer = customerRepository.GetBy(id);

            customer.CustomerGroup = customerGroupRepository.GetBy(customer.CustomerGroupId);
            return(customer.MappingDto());
        }
Beispiel #2
0
 public CustomerGroupDto GetCustomerGroup(int id)
 {
     return(customerGroupRepository.GetBy(id).MappingDto());
 }