Example #1
0
        public IEnumerable <Cmpmst> GetTWLCompanies(GetTWLCompaniesApi getTWLCompaniesApi)
        {
            var sb = new StringBuilder();

            if (!string.IsNullOrWhiteSpace(getTWLCompaniesApi.coNum))
            {
                sb.AppendFormatWithEscape("cmpmst.co_num = '{0}'", getTWLCompaniesApi.coNum);
            }
            var where = sb.ToString();
            return(this.cmpmstRepository.GetList(where, getTWLCompaniesApi.batchsize, getTWLCompaniesApi.fldlist));
        }
Example #2
0
 public IEnumerable <Cmpmst> GetTWLCompanies(GetTWLCompaniesApi getTWLCompaniesApi)
 {
     return(this.cmpmstService.GetTWLCompanies(getTWLCompaniesApi));
 }