public JsonResult List(QueryPick queryPick) { return(new JsonResult(new SingleResponse { TotalCount = pickService.TotalCount(queryPick), Data = pickService.PageList(queryPick) })); }
public List <VPickingTaskList> List() { var list1 = waveService.PageList(); var list2 = pickService.PageList(null); var list = new List <VPickingTaskList>(); list.AddRange(list1.Select(x => new VPickingTaskList { Code = x.Code, TypeCode = "Wave", Status = "", })); list.AddRange(list2.Select(x => new VPickingTaskList { Code = x.Code, TypeCode = "Pick", Status = x.Status, })); return(list); }