Exemplo n.º 1
0
        public Int64 Update(AgentMaster objAgentMaster)
        {
            Int64 result = 0;

            try
            {
                Cls_agentmaster_db objCls_agentmaster_db = new Cls_agentmaster_db();

                result = Convert.ToInt64(objCls_agentmaster_db.Update(objAgentMaster));
                return(result);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(result);
            }
        }
Exemplo n.º 2
0
        public AgentMaster SelectById(Int64 id)
        {
            AgentMaster objAgentMaster = new AgentMaster();

            try
            {
                Cls_agentmaster_db objCls_agentmaster_db = new Cls_agentmaster_db();

                objAgentMaster = objCls_agentmaster_db.SelectById(id);
                return(objAgentMaster);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(objAgentMaster);
            }
        }
Exemplo n.º 3
0
 public bool AddAgent(AgentMaster a)
 {
     return(agent.AddAgent(a));
 }
Exemplo n.º 4
0
 public bool UpdateAgent(AgentMaster a)
 {
     return(agent.UpdateAgent(a));
 }