public IEnumerable <Icsec> GetIcsecsByTypeProd( GetIcsecsByTypeProdRequestApi getIcsecsByTypeProdRequestApi) { var where = new StringBuilder(); where.Append($"icsec.cono = {this.icsecRepository.Cono}"); if (!string.IsNullOrEmpty(getIcsecsByTypeProdRequestApi.type)) { where.AppendFormatWithEscape(" and icsec.rectype = '{0}'", getIcsecsByTypeProdRequestApi.type); } if (!string.IsNullOrEmpty(getIcsecsByTypeProdRequestApi.prod)) { where.AppendFormatWithEscape(" and icsec.prod = '{0}'", getIcsecsByTypeProdRequestApi.prod); } return(this.icsecRepository.GetList( where.ToString(), getIcsecsByTypeProdRequestApi.batchsize, getIcsecsByTypeProdRequestApi.fldlist)); }
public IEnumerable <Icsec> GetIcsecsByTypeProd(GetIcsecsByTypeProdRequestApi getIcsecsByTypeProdRequestApi) { return(this.icsecService.GetIcsecsByTypeProd(getIcsecsByTypeProdRequestApi)); }