public IEnumerable <OffenderExit> GetAllOffenderExitsForOffender(Offender offender) { var offenderExitRecords = RepoHelper.GetRecords(_filepath); var offenderExitRecordsForOffender = offenderExitRecords.Where(r => exitMatchesOffender(r, offender)); return(offenderExitRecordsForOffender.Select(constructOffenderExitEntity)); }
public IEnumerable <OffenderReception> GetAllOffenderReceptionsForOffender(Offender offender) { var offenderRecptionRecords = RepoHelper.GetRecords(_filepath); var offenderReceptionRecordsForOffender = offenderRecptionRecords.Where(r => receptionMatchesOffender(r, offender)); return(offenderReceptionRecordsForOffender.Select(constructOffenderReceptionEntity)); }
public IEnumerable <OffenderSentence> GetAllOffenderSentencesForOffender(Offender offender) { var offenderSentenceRecords = RepoHelper.GetRecords(_filepath); var offenderSentenceRecordsForOffender = offenderSentenceRecords.Where(r => sentenceMatchesOffender(r, offender)); return(offenderSentenceRecordsForOffender.Select(constructOffenderSentenceEntity)); }
public IEnumerable <OffenderAlias> GetOffenderAliasesForOffender(Offender offender) { var offenderAliasRecords = RepoHelper.GetRecords(_filepath); var offenderAliasRecordsForOffender = offenderAliasRecords.Where(r => aliasMatchesOffender(r, offender)); return(offenderAliasRecordsForOffender.Select(constructOffenderAliasEntity)); }
public IEnumerable <OffenderReception> GetAllOffenderReceptions() { var offenderRecptionRecords = RepoHelper.GetRecords(_filepath); return(offenderRecptionRecords.Select(constructOffenderReceptionEntity)); }
public IEnumerable <OffenderExit> GetAllOffenderExits() { var offenderExitRecords = RepoHelper.GetRecords(_filepath); return(offenderExitRecords.Select(constructOffenderExitEntity)); }