Exemplo n.º 1
0
        private void SendRefundNotification(long customerId, decimal amountRefunded)
        {
            var customer = _customerRepository.GetCustomer(customerId);

            var amountRefundModel = _emailNotificationModelsFactory.GetAmountRefundNotificationViewModel(customer.NameAsString, amountRefunded);

            _notifier.NotifySubscribersViaEmail(NotificationTypeAlias.AmountRefundNotification, EmailTemplateAlias.AmountRefundNotification, amountRefundModel, customer.Id, _sessionContext.UserSession.CurrentOrganizationRole.OrganizationRoleUserId, Request.Url.AbsolutePath);
        }