public virtual ActionResult Permissions(long roleId, String resource) { var role = roleService.Find(roleId); if (role == null || role.NotPermissible) { throw new HttpException((int)HttpStatusCode.NotFound, Translate("Messages.CouldNotFoundEntity")); } var model = RoleHelper.BindRolePermissionModel(roleId, resource); model.Title = String.Format(Translate("Titles.Permissions"), role.Name); return(View(model)); }