Exemplo n.º 1
0
        public async Task <IActionResult> DeleteArtifact(int id)
        {
            if (await _artifactService.DeleteArtifact(id).ConfigureAwait(false))
            {
                return(Ok());
            }

            return(NotFound());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> DeleteArtifact(DeleteArtifactDTO input)
        {
            try
            {
                await _artifactService.DeleteArtifact(input);

                return(Ok());
            }
            catch (System.Exception)
            {
                throw;
            }
        }