public ActionResult Update(List<SortModel> items) { var model = _getTarget(); if (items != null && items.Count > 0) { SortListModel.GetInstance().Update(model, items); } return Json(new { redirectTo = Url.Action(model.RedirectAction, model.RedirectController, model.RouteValues) }); }
public ActionResult SortList() { var sortTargetModel = Session[SessionKeyConfig.SortTargetModel] as SortTargetModel; if (sortTargetModel == null) { throw new Exception("指定されたSession変数はISortModel型にCast出来ません。"); } var model = new SortListModel(sortTargetModel); return View(model); }