public async Task <List <TATaskOrderEntity> > GetPageList(TATaskOrderListParam param, Pagination pagination) { var expression = ListFilter(param); var list = await this.BaseRepository().FindList(expression, pagination); return(list.ToList()); }
private Expression <Func <TATaskOrderEntity, bool> > ListFilter(TATaskOrderListParam param) { var expression = LinqExtensions.True <TATaskOrderEntity>(); if (param != null) { } return(expression); }
public async Task <TData <List <TATaskOrderEntity> > > GetPageList(TATaskOrderListParam param, Pagination pagination) { TData <List <TATaskOrderEntity> > obj = new TData <List <TATaskOrderEntity> >(); obj.Result = await tATaskOrderService.GetPageList(param, pagination); obj.TotalCount = pagination.TotalCount; obj.Tag = 1; return(obj); }
public async Task <TData <List <TATaskOrderEntity> > > GetList(TATaskOrderListParam param) { TData <List <TATaskOrderEntity> > obj = new TData <List <TATaskOrderEntity> >(); obj.Result = await tATaskOrderService.GetList(param); obj.TotalCount = obj.Result.Count; obj.Tag = 1; return(obj); }
public async Task <ActionResult> GetPageListJson(TATaskOrderListParam param, Pagination pagination) { TData <List <TATaskOrderEntity> > obj = await tATaskOrderBLL.GetPageList(param, pagination); return(Json(obj)); }