refactor: remove CreateEnvelopeReceiverResponse

This commit is contained in:
2025-08-21 17:07:22 +02:00
parent 196941f73f
commit c7b3d97b2e
5 changed files with 11 additions and 84 deletions

View File

@@ -1,4 +1,5 @@
using EnvelopeGenerator.Application.Envelopes.Queries.Read;
using EnvelopeGenerator.Application.Dto;
using EnvelopeGenerator.Application.Envelopes.Queries.Read;
using MediatR;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System.ComponentModel.DataAnnotations;
@@ -16,7 +17,7 @@ public record CreateEnvelopeCommand(
[Required] string Title,
[Required] string Message,
bool TFAEnabled = false
) : IRequest<CreateEnvelopeResponse?>
) : IRequest<EnvelopeDto?>
{
/// <summary>
/// Id of receiver
@@ -24,9 +25,4 @@ public record CreateEnvelopeCommand(
[JsonIgnore]
[BindNever]
public int? UserId { get; set; }
};
/// <summary>
///
/// </summary>
public record CreateEnvelopeResponse : ReadEnvelopeResponse;
};