public async Task <IEnumerable <IResource> > GetResourcesAsync(IEnumerable <string> included, Dictionary <string, IResource> resources, TThisEntity entity) { string id = _getField(entity); return(await _otherResourceMapper.MapMatchingAsync(included, resources, e => e.Id == id)); }
public async Task <IEnumerable <IResource> > GetResourcesAsync(IEnumerable <string> included, Dictionary <string, IResource> resources, TThisEntity entity) { return(await _otherResourceMapper.MapMatchingAsync(included, resources, CreateEqualPredicate(entity.Id))); }