Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public async Task<Voter> GetVoterById (int VoterId, int OrganzationId)
  2. {
  3. var Voter = await _context.Voters.Where (v => v.Id == VoterId).IncludeFilter
  4. (v => v.VotingYears.Where (y => y.OrganizationId ==
  5. OrganzationId)).FirstOrDefaultAsync ();
  6. return Voter;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement