public NatrajSMSLog SendSMS(string mobileNumber, string message) { NatrajSMSLog natrajSMSLog = new NatrajSMSLog(); natrajSMSLog.SMSId = unitOfWork.DashboardRepository.NextNumberGenerator("NatrajSMSLog"); SMSConvertor.ConvertToSMSMessage(ref natrajSMSLog, NatrajComponent.CRM, SMSType.DockMilkCollection, mobileNumber, message); return(natrajSMSLog); }
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); }