public async Task <PageData> GetPageList(GoodsoPageRequestDto goodsoPageRequestDto) { return(await _goodsAppService.GetPageListAsync(goodsoPageRequestDto)); //PageData pageData = new PageData(); //using (TestDbContext db = new TestDbContext()) //{ // var data = await db.Goods.Where(g => g.IsDelete == false).ToListAsync(); // pageData.Data = data; // return pageData; //} }
/// <summary> /// 分页获取 /// </summary> /// <param name="input"></param> /// <returns></returns> public async Task <PageData> GetPageList(GoodsPageRequestDto input) { input.InitRequest(); return(await _goodsAppService.GetPageListAsync(input)); }
public async Task <object> GetList(GoodsoPageRequestDto goodsoPageRequestDto) { return(await _goodsAppService.GetPageListAsync(goodsoPageRequestDto)); // return new string[] { "value1", "value2" }; }