예제 #1
0
        public OutExecutiveChilds GetExecutiveChilds(string executiveID, int level)
        {
            OutExecutiveChilds response = new OutExecutiveChilds();

            try
            {
                ExecutiveDAO dao = new ExecutiveDAO();
                response = dao.GetExecutiveChilds(executiveID, level);
            }
            catch (Exception ex)
            {
                //escribir en el log
                LogHelper.WriteLog("Models", "ManageExecutive", "GetExecutiveChilds", ex, "");
            }
            return(response);
        }
예제 #2
0
        public OutExecutiveInformation GetExecutiveInformation(string executiveID, double asesor)
        {
            OutExecutiveInformation response = new OutExecutiveInformation();

            try
            {
                ExecutiveDAO dao = new ExecutiveDAO();
                response = dao.GetExecutiveInformation(executiveID, asesor);
            }
            catch (Exception ex)
            {
                //escribir en el log
                LogHelper.WriteLog("Models", "ManageExecutive", "GetExecutiveInformation", ex, "");
            }
            return(response);
        }
예제 #3
0
        public Response UpdateExecutive(InUpdateExecutive input)
        {
            InUpdateExecutive userData = new InUpdateExecutive();
            Response          response = new Response();

            try
            {
                ExecutiveDAO dao = new ExecutiveDAO();
                response = dao.UpdateExecutive(input);
            }
            catch (Exception ex)
            {
                //escribir en el log
                LogHelper.WriteLog("Models", "ManageExecutive", "UpdateExecutive", ex, "");
            }
            return(response);
        }