public async Task <IActionResult> DeleteArtifact(int id) { if (await _artifactService.DeleteArtifact(id).ConfigureAwait(false)) { return(Ok()); } return(NotFound()); }
public async Task <IActionResult> DeleteArtifact(DeleteArtifactDTO input) { try { await _artifactService.DeleteArtifact(input); return(Ok()); } catch (System.Exception) { throw; } }