EF Core Beziehungskonfiguration für Envelope-Entität korrigiert
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using AutoMapper;
|
||||
using DigitalData.Core.Application;
|
||||
using DigitalData.Core.Contracts.Application;
|
||||
using DigitalData.Core.Contracts.CultureServices;
|
||||
using EnvelopeGenerator.Application.Contracts;
|
||||
using EnvelopeGenerator.Application.DTOs;
|
||||
@@ -14,5 +15,12 @@ namespace EnvelopeGenerator.Application.Services
|
||||
: base(repository, translationService, mapper)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<IServiceResult<IEnumerable<EnvelopeDto>>> ReadAllWithAsync(bool documents = false, bool receivers = false, bool history = false)
|
||||
{
|
||||
var entities = await _repository.ReadAllWithAsync(documents: documents, receivers: receivers, history: history);
|
||||
var readDto = _mapper.MapOrThrow<IEnumerable<EnvelopeDto>>(entities);
|
||||
return Successful(readDto);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user