Пример #1
0
        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;
            //}
        }
Пример #2
0
 /// <summary>
 /// 分页获取
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task <PageData> GetPageList(GoodsPageRequestDto input)
 {
     input.InitRequest();
     return(await _goodsAppService.GetPageListAsync(input));
 }
Пример #3
0
        public async Task <object> GetList(GoodsoPageRequestDto goodsoPageRequestDto)
        {
            return(await _goodsAppService.GetPageListAsync(goodsoPageRequestDto));

            // return new string[] { "value1", "value2" };
        }