public ActionResult DtoPropertyBinder(NHModerBinderDTO dto) { foreach (Role role in dto.RoleList) { SessionManager.Instance.GetCurrentSession().SaveOrUpdate(role); } return RedirectToAction("DtoPropertyBinder"); }
public ActionResult DtoListRefereOnly(NHModerBinderDTO dto) { TempData["roles"] = dto.RoleList; if (Request.IsAjaxRequest()) { return Json("ok"); } return RedirectToAction("DtoListRefereOnly"); }