public VoterCheck ConvertToVoterCheck(IList <VoterCheck> voterChecks, int eId) { var voterCheckObj = new VoterCheck(); foreach (var item in voterChecks) { if (item.Eid == eId) { voterCheckObj.Eid = item.Eid; voterCheckObj.UserId = item.UserId; } } return(voterCheckObj); }
public void AddVoterCheck(VoterCheck voterCheck) { _electionUnitOfWork.VoterCheckRepository.Add(voterCheck); _electionUnitOfWork.Save(); }