Get a projectId from a project object.
ValidateProject(project)
project
object. Either list with projectId element or projectId value