Closed myssto closed 1 month ago
The bug comes from using .FirstAsync() which will throw an exception if a result is not found, instead of .FirstOrDefaultAsync() which produces a null value. The endpoint now fails gracefully as expected.
.FirstAsync()
.FirstOrDefaultAsync()
Closes #195
The bug comes from using
.FirstAsync()
which will throw an exception if a result is not found, instead of.FirstOrDefaultAsync()
which produces a null value. The endpoint now fails gracefully as expected.Closes #195