public ApiResultObject <List <Application> > GetResult(ApplicationFilterQuery filter) { ApiResultObject <List <Application> > result = null; try { bool valid = true; valid = valid && IsNotNull(param); valid = valid && IsNotNull(filter); List <Application> resultData = null; if (valid) { resultData = new ApplicationGet(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 Application GetByCode(string code, ApplicationFilterQuery filter) { try { return(DAOWorker.AasApplicationDAO.GetByCode(code, filter.Query())); } catch (Exception ex) { LogSystem.Error(ex); param.HasException = true; return(null); } }
internal List <Application> Get(ApplicationFilterQuery filter) { try { return(DAOWorker.AasApplicationDAO.Get(filter.Query(), param)); } catch (Exception ex) { LogSystem.Error(ex); param.HasException = true; return(null); } }
public List <Application> Get(ApplicationFilterQuery filter) { List <Application> result = null; try { result = new ApplicationGet(param).Get(filter); } catch (Exception ex) { LogSystem.Error(ex); param.HasException = true; result = null; } return(result); }