public async Task <Domain.Models.Referral> GetReferralByCustomerIdAsync(Guid customerId) { return(await _referralRepository.GetByCustomerIdAsync(customerId) ?? throw new CustomerNotFoundException($"Referral code for Customer with id '{customerId}' not found.")); }