Example #1
0
        public ApiResultObject <List <ViewAddress> > GetViewResult(PcsAddressViewFilter filter)
        {
            ApiResultObject <List <ViewAddress> > result = null;

            try
            {
                bool valid = true;
                valid = valid && IsNotNull(param);
                valid = valid && IsNotNull(filter);
                List <ViewAddress> resultData = null;
                if (valid)
                {
                    resultData = new PcsAddressGet(param).GetView(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
        public Address GetById(long id)
        {
            Address result = null;

            try
            {
                result = new PcsAddressGet(param).GetById(id);
            }
            catch (Exception ex)
            {
                LogSystem.Error(ex);
                param.HasException = true;
                result             = null;
            }
            return(result);
        }
Example #3
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);
        }