Example #1
0
        public void SendOTP(string OTP, string mobileNumber, NatrajComponent natrajComponent)
        {
            string       otpMessage   = string.Format(NatrajConfigurationHelper.ForgotPasswordOTPMessage, OTP);
            NatrajSMSLog natrajSMSLog = new NatrajSMSLog();

            natrajSMSLog.SMSId = unitOfWork.DashboardRepository.NextNumberGenerator("NatrajSMSLog");
            SMSConvertor.ConvertToSMSMessage(ref natrajSMSLog, natrajComponent, SMSType.ForgotPasswordOTP, mobileNumber, otpMessage);
            unitOfWork.SMSRepository.Add(natrajSMSLog);
            new SMSService().SendEmailInBackgroundThread(natrajSMSLog);
        }
Example #2
0
 public static void ConvertToSMSMessage(ref NatrajSMSLog natrajSMSLog, NatrajComponent natrajComponent, SMSType sMSType, string mobileNumber, string message)
 {
     natrajSMSLog.ComponentId = (int)natrajComponent;
     natrajSMSLog.Receiver    = mobileNumber;
     natrajSMSLog.SMSMessage  = message;
     natrajSMSLog.SMSSentTime = DateTimeHelper.GetISTDateTime();
     natrajSMSLog.SMSTypeId   = (int)sMSType;
     natrajSMSLog.SMSStatus   = (int)SMSStatusId.Queue;
     natrajSMSLog.Sender      = "9566812835";
 }
Example #3
0
 public void SendMessage(NatrajComponent natrajComponent, SMSType sMSType, string mobileNumber, string message)
 {
     throw new NotImplementedException();
 }