Пример #1
0
        public ApiResultObject <List <ModuleRole> > GetResult(ModuleRoleFilterQuery filter)
        {
            ApiResultObject <List <ModuleRole> > result = null;

            try
            {
                bool valid = true;
                valid = valid && IsNotNull(param);
                valid = valid && IsNotNull(filter);
                List <ModuleRole> resultData = null;
                if (valid)
                {
                    resultData = new ModuleRoleGet(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);
        }
Пример #2
0
 internal ModuleRole GetById(long id, ModuleRoleFilterQuery filter)
 {
     try
     {
         return(DAOWorker.AasModuleRoleDAO.GetById(id, filter.Query()));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
Пример #3
0
 internal List <ModuleRole> Get(ModuleRoleFilterQuery filter)
 {
     try
     {
         return(DAOWorker.AasModuleRoleDAO.Get(filter.Query(), param));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
Пример #4
0
        public List <ModuleRole> Get(ModuleRoleFilterQuery filter)
        {
            List <ModuleRole> result = null;

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