Adjust location of classes further.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using FinancialApi.Domain;
|
||||
using FinancialApi.Domain.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FinancialApi.Infrastructure;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using FinancialApi.Application.Queries;
|
||||
using FinancialApi.Application.Interfaces;
|
||||
using FinancialApi.Domain;
|
||||
using FinancialApi.Domain.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FinancialApi.Infrastructure;
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
using FinancialApi.Application.Commands;
|
||||
using FinancialApi.Application.Handlers;
|
||||
using FinancialApi.Application.Queries;
|
||||
using FinancialApi.Application.Interfaces;
|
||||
using FinancialApi.Application.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FinancialApi.Infrastructure;
|
||||
|
||||
public class ReversalQuery(AccountDbContext db, TimeProvider timeProvider) : IReversalQuery
|
||||
{
|
||||
public async Task<ReversalData?> GetReversalDataAsync(Guid journalEntryId)
|
||||
public async Task<JournalReversalContext?> GetReversalDataAsync(Guid journalEntryId)
|
||||
{
|
||||
var entry = await db.JournalEntries
|
||||
.Include(x => x.Lines)
|
||||
@@ -25,6 +27,6 @@ public class ReversalQuery(AccountDbContext db, TimeProvider timeProvider) : IRe
|
||||
.Where(a => accountIds.Contains(a.Id))
|
||||
.ToListAsync();
|
||||
|
||||
return new ReversalData(entry, accounts, timeProvider.GetUtcNow());
|
||||
return new JournalReversalContext(entry, accounts, timeProvider.GetUtcNow());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user