コード例 #1
0
        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));
        }
コード例 #2
0
 public async Task <IEnumerable <IResource> > GetResourcesAsync(IEnumerable <string> included,
                                                                Dictionary <string, IResource> resources, TThisEntity entity)
 {
     return(await _otherResourceMapper.MapMatchingAsync(included, resources, CreateEqualPredicate(entity.Id)));
 }