Updated the PaymentType property in PublicWalkRequestAcceptDto and WalkCreateDto to be nullable. Modified ApiWalksController to safely assign PaymentType, using a default value when null to prevent runtime errors.
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text;
|
|
using gehGassi.Dto.Common;
|
|
|
|
namespace gehGassi.Dto.Walks
|
|
{
|
|
/// <summary>
|
|
/// DTO für das Akzeptieren eines Angebotes für eine öffntliche Anfrage
|
|
/// </summary>
|
|
public class PublicWalkRequestAcceptDto
|
|
{
|
|
/// <summary>
|
|
/// ID des Hundebesitzers
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string DogOwnerId { get; set; }
|
|
|
|
/// <summary>
|
|
/// ID der öffentlichen Anfrage
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string PublicWalkRequestId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Id der Antwort auf die öffentliche Anfrage
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string PublicWalkResponseId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Aktualisierungs-Datum
|
|
/// </summary>
|
|
public DateTimeOffset UpdatedAt { get; set; }
|
|
|
|
/// <summary>
|
|
/// Zahlungsart für den Walk
|
|
/// </summary>
|
|
public WalkPaymentTypeDto? PaymentType { get; set; }
|
|
}
|
|
}
|