Exemple #1
0
        public async Task SaveVoterAsync(VoterModel voter)
        {
            voter.Vin = voter.Vin?.ToUpper();

            if (voter.Id == 0)
            {
                await _voterRepository.InsertVoterAsync(voter);
            }
            else
            {
                await _voterRepository.UpdateVoterAsync(voter);
            }
        }