Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async Task<Voter> GetVoterById (int VoterId, int OrganzationId)
- {
- var Voter = await _context.Voters.Where (v => v.Id == VoterId).IncludeFilter
- (v => v.VotingYears.Where (y => y.OrganizationId ==
- OrganzationId)).FirstOrDefaultAsync ();
- return Voter;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement