using FinancialApi.Application; using FinancialApi.Domain; using Microsoft.EntityFrameworkCore; namespace FinancialApi.Infrastructure; public class AccountQuery(AccountDbContext db) : IAccountQuery { public Task FindByIdAsync(int id) { return db.Accounts.AsNoTracking().FirstOrDefaultAsync(x => x.Id == id); } }