public ActionResult IndexPartial(string Section = "帖子") { ViewBag.Section = Section; int UserID = int.Parse(Session["UserID"].ToString()); UserCenterVM usercentervm = new ViewModels.UserCenterVM(); usercentervm.attendance = attendancemanager.SelectAllAttendanceByUserID(UserID); usercentervm.collection = collectionmanager.SelectByUserID(UserID); usercentervm.post = postsmanager.SelectAllPostsByUserID(UserID); usercentervm.orderitems = orderitemsmanager.SelectAllOrderItems(UserID); return(PartialView(usercentervm)); }