public async Task <IActionResult> Get(string id) { ArtifactPayload?record = await _acticleStoreService.Get(ArtifactId.FromBase64(id)); if (record == null) { return(NotFound()); } return(Ok(record)); }
public async Task <IActionResult> Delete(string id) { bool status = await _acticleStoreService.Delete(ArtifactId.FromBase64(id)); return(status ? Ok() : NotFound()); }