Example #1
0
        public ApiResultObject <List <Address> > GetResult(PcsAddressFilterQuery filter)
        {
            ApiResultObject <List <Address> > result = null;

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

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