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); }
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); } }
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); } }
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); }