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); }
public int InsertAentsInfo(AgentsModel model) { AgentsDAL dal = new AgentsDAL(); return(dal.InsertAgentsInfo(model)); }