Пример #1
0
        public void SaveSMSLog(SMS_LoggerDTO objSMS_LoggerDTO)
        {
            CH_SMSLogger objSMSLogger = new CH_SMSLogger();

            objSMSLogger.Number    = objSMS_LoggerDTO.Number;
            objSMSLogger.SendBy    = objSMS_LoggerDTO.SendBy;
            objSMSLogger.SendDate  = objSMS_LoggerDTO.SendDate;
            objSMSLogger.Category  = objSMS_LoggerDTO.Category;
            objSMSLogger.SMSStatus = objSMS_LoggerDTO.SMSStatus;
            repCH_SMSLogger.Add(objSMSLogger);
            GeneralManagerUtility.Commit();
        }
Пример #2
0
    /// <summary>
    /// Saves the email log.
    /// </summary>
    /// <param name="objEmail_LoggerDTO">The obj email_ logger DTO.</param>
    /// <remarks></remarks>
    public void SaveEmailLog(Email_LoggerDTO objEmail_LoggerDTO)
    {
        CH_EmailLogger objemail = new CH_EmailLogger();

        objemail.FromEmail   = objEmail_LoggerDTO.FromEmail;
        objemail.ToEmail     = objEmail_LoggerDTO.ToEmail;
        objemail.SendBy      = objEmail_LoggerDTO.SendBy;
        objemail.SendDate    = objEmail_LoggerDTO.SendDate;
        objemail.Subject     = objEmail_LoggerDTO.Subject;
        objemail.Body        = objEmail_LoggerDTO.Body;
        objemail.EmailStatus = objEmail_LoggerDTO.EmailStatus;
        repEmailLogger.Add(objemail);
        GeneralManagerUtility.Commit();
    }