Exemplo n.º 1
0
        public IEnumerable <Sasgl> GetSasglListAllByState(GetSasglListAllByStateRequestApi getGetSasglListAllByStateRequestApi)
        {
            var where = new StringBuilder();
            where.Append($"sasgl.cono = {this.sasglRepository.Cono}");

            if (!string.IsNullOrEmpty(getGetSasglListAllByStateRequestApi.state))
            {
                where.AppendFormatWithEscape(" AND sasgl.state = '{0}'", getGetSasglListAllByStateRequestApi.state);
            }

            return(this.sasglRepository.GetList(
                       where.ToString(),
                       getGetSasglListAllByStateRequestApi.batchsize,
                       getGetSasglListAllByStateRequestApi.fldlist));
        }
Exemplo n.º 2
0
 public IEnumerable <Sasgl> GetSasglListAllByState(GetSasglListAllByStateRequestApi GetSasglListAllByStateRequestApi)
 {
     return(this.sasglService.GetSasglListAllByState(GetSasglListAllByStateRequestApi));
 }