Exemple #1
0
 public ActionResult AllowPermission(PermissionModel mod)
 {
     try
     {
         foreach (PagePermissionModel pm in mod.MyPermissionDeny)
         {
             if (pm.Selected == true)
             {
                 if (!(pagemanager.AllowPagePermission(Gid, pm.PageName)))
                 {
                     return(View("Error"));
                 }
             }
         }
         return(RedirectToAction("Group"));
     }
     catch (Exception ex)
     {
         ViewBag.message = ex.Message;
         return(View("Error"));
     }
 }