public JsonResult BackGoodsList(PageParm parm, SearchParm searchParm) { var res = _backService.GetPagesAsync(parm, searchParm).Result; var list = res.data.Items?.Select(m => new { m.Code, m.BackCount, GoodsName = m.BrandName + m.StyleName + m.SeasonName, AddDate = m.AddDate.ToShortDateString().Replace("/", "-") }); return(Json(new { statusCode = 200, msg = "success", count = res.data.TotalPages, data = list })); }
public async Task <JsonResult> GetBackPages(PageParm parm, SearchParm searchParm) { var res = await _backGoodsService.GetPagesAsync(parm, searchParm); return(Json(new { code = 0, msg = "success", count = res.data?.TotalItems, data = res.data?.Items })); }