Beispiel #1
0
        public ApiResultObject <List <Module> > GetResult(ModuleFilterQuery filter)
        {
            ApiResultObject <List <Module> > result = null;

            try
            {
                bool valid = true;
                valid = valid && IsNotNull(param);
                valid = valid && IsNotNull(filter);
                List <Module> resultData = null;
                if (valid)
                {
                    resultData = new ModuleGet(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);
        }
Beispiel #2
0
 internal Module GetById(long id, ModuleFilterQuery filter)
 {
     try
     {
         return(DAOWorker.AasModuleDAO.GetById(id, filter.Query()));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
Beispiel #3
0
 public List <Module> Get(ModuleFilterQuery filter)
 {
     try
     {
         return(DAOWorker.AasModuleDAO.Get(filter.Query(), param));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
Beispiel #4
0
        public List <Module> Get(ModuleFilterQuery filter)
        {
            List <Module> result = null;

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