Add Domain project and shifted handlers to application.

This commit is contained in:
2026-07-15 16:10:00 +02:00
parent 656f545281
commit 0376b58a33
16 changed files with 229 additions and 52 deletions
@@ -0,0 +1,13 @@
using FinancialApi.Application;
using FinancialApi.Domain;
using Microsoft.EntityFrameworkCore;
namespace FinancialApi.Infrastructure;
public class AccountQuery(AccountDbContext db) : IAccountQuery
{
public Task<Account?> FindByIdAsync(int id)
{
return db.Accounts.AsNoTracking().FirstOrDefaultAsync(x => x.Id == id);
}
}