Exemplo n.º 1
0
        public async Task <IActionResult> DeleteCandidacy(DeleteCandidacyRequest request)
        {
            var selectedCandidacy = await _electionService.DeleteCandidacy(request.CandidateId, request.ElectionId);

            var response = new DeleteCandidacyResponse
            {
                CandidacyId = selectedCandidacy.Id
            };

            return(Ok(response));
        }