public virtual PermissionCheckBuilder AtomicCheck(Resources resource, string queryParam, Permissions permission) { var permCheck = new PermissionCheck(); permCheck.Resource = resource; permCheck.ResourceIdQueryParam = queryParam; permCheck.Permission = permission; atomicChecks.Add(permCheck); return(this); }
public virtual PermissionCheckBuilder AtomicCheckForResourceId(Resources resource, string resourceId, Permissions permission) { var permCheck = new PermissionCheck(); permCheck.Resource = resource; permCheck.ResourceId = resourceId; permCheck.Permission = permission; atomicChecks.Add(permCheck); return(this); }
public virtual void AddAtomicCheck(PermissionCheck permissionCheck) { atomicChecks.Add(permissionCheck); }