示例#1
0
        public async Task <ActionResult <IEnumerable <EnrolleeAdjudicationDocument> > > GetEnrolleeAdjudicationDocuments(int enrolleeId)
        {
            if (!await _enrolleeService.EnrolleeExistsAsync(enrolleeId))
            {
                return(NotFound(ApiResponse.Message($"Enrollee not found with id {enrolleeId}")));
            }

            var documents = await _enrolleeService.GetEnrolleeAdjudicationDocumentsAsync(enrolleeId);

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