Exemple #1
0
        public async Task <IActionResult> AddTestScore(CandidateTestScoreDto candidateTestScoreObj)
        {
            var candidateTestScore = await _candidateRepository.AddCandidateTestScore(candidateTestScoreObj);

            if (candidateTestScore.Code == 201)
            {
                return(StatusCode(StatusCodes.Status201Created, candidateTestScore));
            }

            if (candidateTestScore.Code == 200)
            {
                return(StatusCode(StatusCodes.Status200OK, candidateTestScore));
            }
            return(StatusCode(StatusCodes.Status500InternalServerError, candidateTestScore));
        }