public ActionResult Order(int page) { User user = (User)Session["User"]; AccountManager manager = new AccountManager(); ShopManager shop = new ShopManager(user); int total = 0; int pageSize = 30; if (page <= 0) { page = 1; } List<Trade> trades = manager.GetTrades(0,0,0,0,out total,page,pageSize); ViewBag.page = page; ViewBag.pageSize = pageSize; ViewBag.total = total; List<Trade_Status> status = shop.GetStatus(); ViewData["tstatus"] = status; return View(trades); }