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); } }
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); } }
public bool AddAgent(AgentMaster a) { return(agent.AddAgent(a)); }
public bool UpdateAgent(AgentMaster a) { return(agent.UpdateAgent(a)); }