public async Task <IHttpActionResult> PublishArtifacts([FromBody] IEnumerable <int> artifactIds, [FromUri] bool?all = null) { return(Ok(await _versionControlService.PublishArtifacts(new PublishParameters { All = all, ArtifactIds = artifactIds, UserId = Session.UserId }))); }