Genral clean up and moving of code.

This commit is contained in:
2026-07-30 17:01:33 +02:00
parent b37ca9222d
commit 2abe392890
19 changed files with 141 additions and 18 deletions
@@ -6,9 +6,9 @@ namespace FinancialApi.Infrastructure;
public class AccountQuery(AccountDbContext db) : IAccountQuery
{
public Task<Account?> FindByIdAsync(int id)
public async Task<Account?> FindByIdAsync(int id)
{
return db.Accounts.AsNoTracking()
return await db.Accounts.AsNoTracking()
.FirstOrDefaultAsync(x => x.Id == id);
}
}