public async Task AddRegistrationDateAsync(Guid customerId, Guid?partnerId, DateTime registrationDate,
                                                   VoucherOperationType operationType, decimal amount, string currency)
        {
            await _customerRegistrationRepository.InsertIfNotExistsAsync(customerId, partnerId, registrationDate);

            var model = new UpdateVoucherOperationsStatistic()
            {
                PartnerId     = partnerId.GetValueOrDefault(),
                Amount        = amount,
                OperationType = operationType,
                Currency      = currency,
            };

            await _voucherOperationsStatisticService.UpdateVoucherOperationsStatistic(model);
        }
Ejemplo n.º 2
0
 public Task AddRegistrationDateAsync(Guid customerId, Guid?partnerId, DateTime registrationDate)
 {
     return(_customerRegistrationRepository.InsertIfNotExistsAsync(customerId, partnerId, registrationDate));
 }