Ejemplo n.º 1
0
        public async Task Consume(ConsumeContext <ISmsCreditAdded> context)
        {
            await _smsLogRepository.LogAsync(SmsLog.CreateSmsAdditionLog(context.Message));

            await _notificationFacade.SendEmailAsync(
                context.Message,
                Template.SmsCreditAddedEmailUser,
                context.Message.Email);

            await _notificationFacade.SendSmsAsync(
                context.Message,
                Template.SmsCreditAddedSmsUser,
                context.Message.Phone);
        }