Beispiel #1
0
        public DataTable GetAgentsInfoById(AgentsModel model)
        {
            AgentsDAL dal = new AgentsDAL();
            DataTable dt  = dal.GetAgentsInfoById(model);

            return(dt);
        }
        public static List <ListItem> GetAgents(string StrToSearch)
        {
            List <ListItem> AgentsList = new List <ListItem>();
            AgentsDAL       objAgents  = new AgentsDAL();

            try
            {
                try
                {
                    AgentsList = objAgents.GetAgents(StrToSearch, CommonENT.MYCTSDB_CONNECTION);
                }
                catch (Exception ex)
                {
                    new EventsManager.EventsManager(ex, EventsManager.EventsManager.OrigenError.BaseDeDatos);
                    AgentsList = objAgents.GetAgents(StrToSearch, CommonENT.MYCTSDBBACKUP_CONNECTION);
                }
            }
            catch
            { }
            return(AgentsList);
        }
Beispiel #3
0
        public int InsertAentsInfo(AgentsModel model)
        {
            AgentsDAL dal = new AgentsDAL();

            return(dal.InsertAgentsInfo(model));
        }