public NtfEmaillog NtfEmailLog() { NtfEmaillog log = new NtfEmaillog(); log.SentAmount = this.SentAmount; log.SentDate = this.SentDate; log.EmailLogId = 0; return log; }
public int SaveEmailLog(EmailLog emailLog) { NtfEmaillog ntfEmaillog = emailLog.NtfEmailLog(); return(repository.SaveEmailLog(ntfEmaillog)); }
public EmailLog(NtfEmaillog ntfEmailLog) { this.SentAmount = ntfEmailLog.SentAmount; this.SentDate = ntfEmailLog.SentDate; this.EmailLogId = ntfEmailLog.EmailLogId; }
internal int SaveEmailLog(NtfEmaillog emaillog) { this.context.Add(emaillog); return(context.SaveChanges()); }