Example #1
0
        public IActionResult DeleteCandidate(Guid id)
        {
            var candidateExists = _candidateService.CheckIfCandidateExists(id);

            if (!candidateExists)
            {
                return(NotFound());
            }

            _candidateService.DeleteCandidate(id);

            return(NoContent());
        }