Beispiel #1
0
        public async Task <ActionResult <string> > GetEnrolleeCurrentStatus(int enrolleeId)
        {
            var enrollee = await _enrolleeService.GetPermissionsRecordAsync(enrolleeId);

            if (enrollee == null)
            {
                return(NotFound(ApiResponse.Message($"Enrollee not found with id {enrolleeId}")));
            }

            var status = await _enrolleeService.GetEnrolleeCurrentStatusAsync(enrolleeId);

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