public IEnumerable <Kpso> GetOptionsByOptionName(GetOptionsByOptionNameRequestApi getGetOptionsByOptionNameRequestApi) { var where = new StringBuilder(); where.Append($"kpso.cono = {this.kpsoRepository.Cono}"); if (!string.IsNullOrEmpty(getGetOptionsByOptionNameRequestApi.optionname)) { where.AppendFormatWithEscape(" AND kpso.optionname = '{0}'", getGetOptionsByOptionNameRequestApi.optionname); } return(this.kpsoRepository.GetList( where.ToString(), true, getGetOptionsByOptionNameRequestApi.batchsize, getGetOptionsByOptionNameRequestApi.fldlist)); }
public IEnumerable <Kpso> GetOptionsByOptionName(GetOptionsByOptionNameRequestApi getOptionsByOptionNameRequestApi) { return(this.kpsoService.GetOptionsByOptionName(getOptionsByOptionNameRequestApi)); }