public void AddRcptMergeVars(string rcptEmail, string name, dynamic content) { var mergeVar = MergeVars.FirstOrDefault(x => x.Rcpt == rcptEmail); if (mergeVar == null) { MergeVars.Add(mergeVar = new MandrillRcptMergeVar { Rcpt = rcptEmail }); } mergeVar.Vars.Add(new MandrillMergeVar { Name = name, Content = content }); }
public void AddRcptMergeVars(string rcptEmail, string name, dynamic content) { var mergeVar = MergeVars.FirstOrDefault(x => x.Rcpt == rcptEmail); if (mergeVar == null) { MergeVars.Add(mergeVar = new MandrillRcptMergeVar {Rcpt = rcptEmail}); } mergeVar.Vars.Add(new MandrillMergeVar { Name = name, Content = content }); }
public void AddRcptMergeVars(string rcptEmail, string name, IEnumerable<IDictionary<string, object>> content) { var mergeVar = MergeVars.FirstOrDefault(x => x.Rcpt == rcptEmail); if (mergeVar == null) { MergeVars.Add(mergeVar = new MandrillRcptMergeVar {Rcpt = rcptEmail}); } mergeVar.Vars.Add(new MandrillMergeVar { Name = name, Content = new MandrillMergeVarContent(content) }); }