public async Task <bool> UpdateVoterInfo(int voterId, DateTime dob) { var isVoteUpdated = false; var voter = await VoterRepository.GetByIdAsync(voterId); if (voter != null) { voter.DOB = dob; await VoterRepository.UpdateAsync(voter); isVoteUpdated = true; } return(isVoteUpdated); }