Ejemplo n.º 1
0
        public ApiResultObject <List <Application> > GetResult(ApplicationFilterQuery filter)
        {
            ApiResultObject <List <Application> > result = null;

            try
            {
                bool valid = true;
                valid = valid && IsNotNull(param);
                valid = valid && IsNotNull(filter);
                List <Application> resultData = null;
                if (valid)
                {
                    resultData = new ApplicationGet(param).Get(filter);
                }
                result = this.PackResult(resultData);
                this.FailLog(result.Success, filter, result.Data);
            }
            catch (Exception ex)
            {
                LogSystem.Error(ex);
                param.HasException = true;
                result             = null;
            }
            return(result);
        }
Ejemplo n.º 2
0
 internal Application GetByCode(string code, ApplicationFilterQuery filter)
 {
     try
     {
         return(DAOWorker.AasApplicationDAO.GetByCode(code, filter.Query()));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
Ejemplo n.º 3
0
 internal List <Application> Get(ApplicationFilterQuery filter)
 {
     try
     {
         return(DAOWorker.AasApplicationDAO.Get(filter.Query(), param));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
Ejemplo n.º 4
0
        public List <Application> Get(ApplicationFilterQuery filter)
        {
            List <Application> result = null;

            try
            {
                result = new ApplicationGet(param).Get(filter);
            }
            catch (Exception ex)
            {
                LogSystem.Error(ex);
                param.HasException = true;
                result             = null;
            }
            return(result);
        }