undo filtering non-Uri which doesn't work right

This commit is contained in:
Collin M. Barrett 2019-07-02 14:56:40 -05:00
parent 25c7653914
commit 98329e42a2

View file

@ -36,8 +36,7 @@ public async Task<IEnumerable<Uri>> GetAllAsync<TModel>()
var request = new RestRequest($"{EntityUrlsEndpoints[typeof(TModel).Name]}/seed");
var response = await _apiClient.ExecuteAsync<IEnumerable<TModel>>(request);
return response.SelectMany(r =>
r.GetType().GetProperties().Where(p => p.GetType() == typeof(Uri) && p.GetValue(r) != null)
.Select(p => (Uri)p.GetValue(r)));
r.GetType().GetProperties().Where(p => p.GetValue(r) != null).Select(p => (Uri)p.GetValue(r)));
}
}
}