You can add Where clauses to linq statements.
Here is an example
1 | public IResult<List<NoteEntity>> GetAll(string companyKey) |
Notice the where clause
I think you put this before include for performance.
For an And statement use && instead of and.
For example
1 | .Where (e => e.Id == id && e.CompanyKey == companyKey); |