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