public void AddContact( string firstName, string lastName, string email, string agent, string message) { FirstName = firstName; LastName = lastName; Email = email; Agent = agent; Message = message; DALContacts.AddContact(this); }
public Dictionary <string, string> GetAgents() { var agentsDT = DALContacts.GetAgents(); var agentsDic = new Dictionary <string, string>(); if (agentsDT.Rows.Count > 0) { for (var i = 0; i < agentsDT.Rows.Count; i++) { agentsDic.Add( agentsDT.Rows[i]["AgentGUID"].ToString(), agentsDT.Rows[i]["FirstName"] + " " + agentsDT.Rows[i]["LastName"]); } } return(agentsDic); }