コード例 #1
0
        public async Task <ActionResult <EnrolleeAdjudicationDocument> > DeleteEnrolleeAdjudicationDocument(int documentId)
        {
            var document = await _enrolleeService.GetEnrolleeAdjudicationDocumentAsync(documentId);

            if (document == null)
            {
                return(NotFound(ApiResponse.Message($"Document not found with id {documentId}")));
            }

            await _enrolleeService.DeleteEnrolleeAdjudicationDocumentAsync(documentId);

            return(Ok(ApiResponse.Result(document)));
        }