private Dictionary <string, string> GetMergeField(Domain.AgentInfo agent, InqueryHistoryStatusChangedToParsedDomainEvent @event) { var mergedFields = new Dictionary <string, string>() { { "[agentfirstname]", agent.Firstname }, { "[agentlastname]", agent.Lastname }, { "[agentaddress]", agent.Address }, { "[agentcity]", agent.City }, { "[agentcompany]", agent.Company }, { "[agentstate]", agent.State }, { "[agentzip]", agent.Zip }, { "[agentfacebook]", agent.Facebook }, { "[agentinstagram]", agent.Instagram }, { "[agenttwitter]", agent.Twitter }, { "[agentlinkedIn]", agent.LinkedIn }, { "[agentlogo]", agent.Logo }, { "[agentinquirytypeformlink]", @event.InqueryHistory.GenerateTypeFormLink(@event.InqueryHistory.AgentInquiryInfo.TypeFormUrl) }, { "[addressbooklink]", "http://contact.adfenixleads.com" }, { "[agentinquiryspreadsheetlink]", @event.InqueryHistory.AgentInquiryInfo?.SpreadsheetUrl }, { "[agentmortgagespreadsheetlink]", @event.InqueryHistory.AgentInquiryInfo?.MortgageShareableUrl }, { "[agentlandlordspreadsheetlink]", @event.InqueryHistory.AgentInquiryInfo?.LandlordShareableUrl }, { "[agentvendorspreadsheetlink]", @event.InqueryHistory.AgentInquiryInfo?.VendorShareableUrl }, { "[agentaggregatespreadsheetlink]", @event.InqueryHistory.AgentInquiryInfo?.AggregateShareableUrl }, { "[organizationemail]", @event.InqueryHistory.OrganizationInfo.OrganizationEmail }, { "[organizationdomain]", @event.InqueryHistory.OrganizationInfo.OrganizationDomain }, { "[organizationname]", @event.InqueryHistory.OrganizationInfo.OrganizationName } }; foreach (var item in @event.InqueryHistory.ExtractedFields) { if (!mergedFields.ContainsKey($"[{item.Key}]")) { mergedFields.Add($"[{item.Key}]", item.Value); } } return(mergedFields); }
private Dictionary <string, string> GetMergeField(Domain.AgentInfo agent, InqueryHistoryStatusChangedToParsedDomainEvent @event) { var mergedFields = new Dictionary <string, string>() { { "[agentfirstname]", agent.Firstname }, { "[agentlastname]", agent.Lastname }, { "[agentaddress]", agent.Address }, { "[agentcity]", agent.City }, { "[agentstate]", agent.State }, { "[agentzip]", agent.Zip }, { "[addressbooklink]", "http://contact.adfenixleads.com" }, { "[organizationemail]", @event.InqueryHistory.OrganizationInfo.OrganizationEmail } }; foreach (var item in @event.InqueryHistory.ExtractedFields) { if (!mergedFields.ContainsKey($"[{item.Key}]")) { mergedFields.Add($"[{item.Key}]", item.Value); } } return(mergedFields); }