public CustomerDto GetCustomer(int id) { var customer = customerRepository.GetBy(id); customer.CustomerGroup = customerGroupRepository.GetBy(customer.CustomerGroupId); return(customer.MappingDto()); }
public CustomerGroupDto GetCustomerGroup(int id) { return(customerGroupRepository.GetBy(id).MappingDto()); }