Skip to content

Commit 78a2361

Browse files
committed
Merge branch 'main' into manage-context-lifetime
2 parents cb4c9d0 + e98cb73 commit 78a2361

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ Read the [Getting Started section](getting-started/). You can also [review the s
3838

3939
## Docs theme notes
4040

41-
This docs site is using the [Just the Docs theme](https://pmarsceill.github.io/just-the-docs/docs/navigation-structure/). Details on how to configure its metadata and navigation can be found [here](https://pmarsceill.github.io/just-the-docs/docs/navigation-structure/).
41+
This docs site is using the [Just the Docs theme](https://just-the-docs.github.io/just-the-docs/). Details on how to configure its metadata and navigation can be found [here](https://just-the-docs.github.io/just-the-docs/docs/navigation-structure/).

docs/usage/use-built-in-abstract-repository.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public async Task<Hero> GetByName(string name)
138138
{
139139
var spec = new HeroByNameSpec(name);
140140

141-
return await _heroRepository.GetBySpecAsync(spec);
141+
return await _heroRepository.FirstOrDefaultAsync(spec);
142142
}
143143
```
144144

@@ -249,7 +249,7 @@ public class HeroService
249249
{
250250
var spec = new HeroByNameSpec(name);
251251

252-
return await _heroRepository.GetBySpecAsync(spec);
252+
return await _heroRepository.FirstOrDefaultAsync(spec);
253253
}
254254

255255
public async Task<List<Hero>> GetHeroesFilteredByNameAndSuperPower(string name, string superPower)

0 commit comments

Comments
 (0)