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)); }
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)); }