Add Domain project and shifted handlers to application.
This commit is contained in:
1 parent
656f545281
commit
0376b58a33
16 files changed
+229
-52
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user