public ActionResult DtoPropertyBinder(NHModerBinderDTO dto)
 {
     foreach (Role role in dto.RoleList)
     {
         SessionManager.Instance.GetCurrentSession().SaveOrUpdate(role);
     }
     return RedirectToAction("DtoPropertyBinder");
 }
 public ActionResult DtoListRefereOnly(NHModerBinderDTO dto)
 {
     var selected = new List<Role>();
     if (dto.RoleList != null)
     {
         foreach (var role in dto.RoleList)
         {
             if (role.Id != Guid.Empty)
                 selected.Add(role);
         }
     }
     TempData["roles"] = selected;
     if (Request.IsAjaxRequest())
     {
         return Json("Selected is " + selected.Count);
     }
     return RedirectToAction("DtoListRefereOnly");
 }