Example #1
0
        public NtfEmaillog NtfEmailLog()
        {
            NtfEmaillog log = new NtfEmaillog();
            log.SentAmount = this.SentAmount;
            log.SentDate = this.SentDate;
            log.EmailLogId = 0;
            return log;

        }
Example #2
0
        public int SaveEmailLog(EmailLog emailLog)
        {
            NtfEmaillog ntfEmaillog = emailLog.NtfEmailLog();

            return(repository.SaveEmailLog(ntfEmaillog));
        }
Example #3
0
 public EmailLog(NtfEmaillog ntfEmailLog)
 {
     this.SentAmount = ntfEmailLog.SentAmount;
     this.SentDate = ntfEmailLog.SentDate;
     this.EmailLogId = ntfEmailLog.EmailLogId;
 }
Example #4
0
 internal int SaveEmailLog(NtfEmaillog emaillog)
 {
     this.context.Add(emaillog);
     return(context.SaveChanges());
 }