diff --git a/EnvelopeGenerator.Application/Documents/Queries/Read/ReadDocumentMappingProfile.cs b/EnvelopeGenerator.Application/Documents/Queries/Read/ReadDocumentMappingProfile.cs
new file mode 100644
index 00000000..ac9c9b18
--- /dev/null
+++ b/EnvelopeGenerator.Application/Documents/Queries/Read/ReadDocumentMappingProfile.cs
@@ -0,0 +1,18 @@
+using AutoMapper;
+using EnvelopeGenerator.Domain.Entities;
+
+namespace EnvelopeGenerator.Application.Documents.Queries.Read;
+
+///
+///
+///
+public class ReadDocumentMappingProfile : Profile
+{
+ ///
+ ///
+ ///
+ public ReadDocumentMappingProfile()
+ {
+ CreateMap();
+ }
+}
diff --git a/EnvelopeGenerator.Application/Documents/Queries/Read/ReadDocumentResponse.cs b/EnvelopeGenerator.Application/Documents/Queries/Read/ReadDocumentResponse.cs
index 7d9b6ea0..e5d1b287 100644
--- a/EnvelopeGenerator.Application/Documents/Queries/Read/ReadDocumentResponse.cs
+++ b/EnvelopeGenerator.Application/Documents/Queries/Read/ReadDocumentResponse.cs
@@ -3,13 +3,25 @@
///
/// Represents the response for reading a document.
///
-/// The unique identifier of the document.
-/// The identifier of the associated envelope.
-/// The date and time when the document was added.
-/// The binary data of the document, if available.
-public record ReadDocumentResponse(
- int Guid,
- int EnvelopeId,
- DateTime AddedWhen,
- byte[]? ByteData
-);
\ No newline at end of file
+public class ReadDocumentResponse
+{
+ ///
+ /// The unique identifier of the document.
+ ///
+ public int Guid { get; init; }
+
+ ///
+ /// The identifier of the associated envelope.
+ ///
+ public int EnvelopeId { get; init; }
+
+ ///
+ /// The date and time when the document was added.
+ ///
+ public DateTime AddedWhen { get; init; }
+
+ ///
+ /// The binary data of the document, if available.
+ ///
+ public byte[]? ByteData { get; init; }
+}
diff --git a/EnvelopeGenerator.Application/Extensions/DIExtensions.cs b/EnvelopeGenerator.Application/Extensions/DIExtensions.cs
index 7ae3869b..a127afc4 100644
--- a/EnvelopeGenerator.Application/Extensions/DIExtensions.cs
+++ b/EnvelopeGenerator.Application/Extensions/DIExtensions.cs
@@ -42,8 +42,7 @@ public static class DIExtensions
services.TryAddScoped();
//Auto mapping profiles
- services.AddAutoMapper(typeof(BasicDtoMappingProfile).Assembly);
- services.AddAutoMapper(typeof(UserMappingProfile).Assembly);
+ services.AddAutoMapper(Assembly.GetExecutingAssembly());
services.Configure(config.GetSection(nameof(DispatcherParams)));
services.Configure(config.GetSection(nameof(MailParams)));