示例#1
0
        public IActionResult GetRelatedListData([FromBody] ListRequestinfo request)
        {
            var context = new DataListContext(this.WebAppContext, RequestQuery, request);
            var builder = new EntityListBuilder();

            builder.Build(context);
            var res = builder.GetResponse(context);

            return(CreateResult(res));
        }
示例#2
0
        public IActionResult List([FromBody] ListRequestinfo request)
        {
            DataListContext context = null;

            if (!string.IsNullOrEmpty(this.RequestQuery.RelationField))
            {
                context = new RelatedEntityListContext(this.WebAppContext, RequestQuery, request);
            }
            else
            {
                context = new DataListContext(this.WebAppContext, RequestQuery, request);
            }
            var builder = new EntityListBuilder();

            builder.Build(context);
            var res = builder.GetResponse(context);

            return(CreateResult(res));
        }