public static Int32 DeleteAgent(Int32 agentId) { AgentDSTableAdapter ta = new AgentDSTableAdapter(); //ta.Connection.ConnectionString = UcConnection.ConnectionString; return(ta.Delete(agentId)); }
public static Int32 UpdateAgent(Int32 agentId, Int32 userId, string firstName, string lastName, string email, string phone, bool publicEnabled) { AgentDSTableAdapter ta = new AgentDSTableAdapter(); //ta.Connection.ConnectionString = UcConnection.ConnectionString; return(ta.Update(agentId, userId, firstName, lastName, email, phone, publicEnabled)); }
public static UCENTRIK.DATASETS.AgentDS.AgentDSDataTable GetAgentByUser(Int32 userId) { AgentDSTableAdapter ta = new AgentDSTableAdapter(); //ta.Connection.ConnectionString = UcConnection.ConnectionString; return(ta.GetAgentByUser(userId)); }
public static UCENTRIK.DATASETS.AgentDS.AgentDSDataTable SelectAgent(Int32 agentId) { AgentDSTableAdapter ta = new AgentDSTableAdapter(); //ta.Connection.ConnectionString = UcConnection.ConnectionString; return(ta.GetData(agentId)); }
public static Int32 InsertAgent(Int32 userId, string firstName, string lastName, string email, string phone, bool publicEnabled) { AgentDSTableAdapter ta = new AgentDSTableAdapter(); //ta.Connection.ConnectionString = UcConnection.ConnectionString; int id = Convert.ToInt32(ta.InsertAgent(userId, firstName, lastName, email, phone, publicEnabled)); return(id); }
public static UCENTRIK.DATASETS.AgentDS.AgentDSDataTable GetAllAgents() { LogDS log = new LogDS(); AgentDSTableAdapter ta = new AgentDSTableAdapter(); //ta.Connection.ConnectionString = UcConnection.ConnectionString; return(ta.GetAllAgents()); }
public static AgentDS.AgentDSDataTable GetAgentByEmail(string email) { AgentDSTableAdapter ta = new AgentDSTableAdapter(); return(ta.GetAgentByEmail(email)); }