public virtual ActionResult ApplyPermissions(PermissionOperationsModel model) { var role = roleService.Find(model.RoleId); if (role == null || role.NotPermissible) { throw new HttpException((int)HttpStatusCode.NotFound, Translate("Messages.CouldNotFoundEntity")); } RoleHelper.ApplyRolePermissions(model); Success(Translate("Messages.SuccessfullyApplyPermissions")); return(RedirectToAction(MVC.Admin.Role.Permissions(model.RoleId, String.Format("{0}_{1}", model.ResourceId, (int)model.Area)))); }