Replaced FirstOrDefaultAsync with SingleOrDefaultAsync in BodyQueryBehavior.cs and HeaderQueryBehavior.cs to enforce that database queries return at most one result. This change ensures an exception is thrown if multiple results are found, making debugging and error handling more explicit.
ReC
Description
Languages
C#
100%