public async Task <ShowInfo> ShowGoodsInfo([FromForm] Page m) { int total = 0; ShowInfo slist = new ShowInfo(); slist.list = goodsBLL.ShowGoodsInfo(m, ref total); slist.count = (total / m.pageSize) + (total % m.pageSize > 0 ? 1 : 0); ShowInfo info = await Task.Run(() => { return(slist); }); return(info); }