Exemplo n.º 1
0
        public ApiResultObject <List <Project> > GetResult(PcsProjectFilterQuery filter)
        {
            ApiResultObject <List <Project> > result = null;

            try
            {
                bool valid = true;
                valid = valid && IsNotNull(param);
                valid = valid && IsNotNull(filter);
                List <Project> resultData = null;
                if (valid)
                {
                    resultData = new PcsProjectGet(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);
        }
Exemplo n.º 2
0
 internal Project GetByCode(string code, PcsProjectFilterQuery filter)
 {
     try
     {
         return(DAOWorker.PcsProjectDAO.GetByCode(code, filter.Query()));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
Exemplo n.º 3
0
 internal List <Project> Get(PcsProjectFilterQuery filter)
 {
     try
     {
         return(DAOWorker.PcsProjectDAO.Get(filter.Query(), param));
     }
     catch (Exception ex)
     {
         LogSystem.Error(ex);
         param.HasException = true;
         return(null);
     }
 }
Exemplo n.º 4
0
        public List <Project> Get(PcsProjectFilterQuery filter)
        {
            List <Project> result = null;

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