コード例 #1
0
        public async Task <IActionResult> DeleteArtifact(int id)
        {
            if (await _artifactService.DeleteArtifact(id).ConfigureAwait(false))
            {
                return(Ok());
            }

            return(NotFound());
        }
コード例 #2
0
        public async Task <IActionResult> DeleteArtifact(DeleteArtifactDTO input)
        {
            try
            {
                await _artifactService.DeleteArtifact(input);

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