fix(CreateEnvelopeReceiverCommand): update to use getter-setter

This commit is contained in:
2025-08-29 15:33:03 +02:00
parent 68878c0fc8
commit 9cf776fa98
2 changed files with 16 additions and 18 deletions

View File

@@ -1,15 +1,13 @@
using EnvelopeGenerator.Application.Dto;
using MediatR;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace EnvelopeGenerator.Application.Envelopes.Commands;
/// <summary>
/// Befehl zur Erstellung eines Umschlags.
/// </summary>
public class CreateEnvelopeCommand : IRequest<EnvelopeDto?>
public record CreateEnvelopeCommand : IRequest<EnvelopeDto?>
{
/// <summary>
/// Der Titel des Umschlags. Dies ist ein Pflichtfeld.
@@ -31,7 +29,5 @@ public class CreateEnvelopeCommand : IRequest<EnvelopeDto?>
/// <summary>
/// ID des Absenders
/// </summary>
[JsonIgnore]
[BindNever]
public int? UserId { get; set; }
public int UserId { get; set; }
}