Exemple #1
0
        private CustomerBase EnsureCustomerExistance(ICustomerMapper mapper, int customerId)
        {
            var customer = mapper.Get(customerId);

            if (customer == null)
                throw new CustomerNotFoundException(customerId);

            return customer;
        }