private void ScheduleOtpText(string phoneNumber, string otp) { var message = new StringBuilder(); message.AppendLine($"Monivault OTP: {otp}"); var smsJobArg = new SmsJobArgs { Message = message.ToString(), Recipient = phoneNumber }; _backgroundJobManager.EnqueueAsync <SmsJob, SmsJobArgs>(smsJobArg); }
private void ScheduleWelcomeText(string phoneNumber, string accountIdentity) { var message = new StringBuilder(); message.AppendLine("Welcome to Monivault."); message.AppendLine($"Your Account ID is {accountIdentity}."); Logger.Info($"user phone number: {phoneNumber}"); var smsJobArg = new SmsJobArgs { Message = message.ToString(), Recipient = phoneNumber }; _backgroundJobManager.EnqueueAsync <SmsJob, SmsJobArgs>(smsJobArg); }