Exemple #1
0
        public ApiResultObject <List <CredentialData> > GetResult(CredentialDataFilterQuery filter)
        {
            ApiResultObject <List <CredentialData> > result = null;

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

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