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