25 lines
950 B
C#
25 lines
950 B
C#
// src/Webshop.Application/DTOs/Customers/UpdateCustomerProfileDto.cs
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Webshop.Application.DTOs.Customers
|
|
{
|
|
public class UpdateCustomerDto
|
|
{
|
|
[Required(ErrorMessage = "Vorname ist erforderlich.")]
|
|
[StringLength(100)]
|
|
public string FirstName { get; set; } = string.Empty;
|
|
|
|
[Required(ErrorMessage = "Nachname ist erforderlich.")]
|
|
[StringLength(100)]
|
|
public string LastName { get; set; } = string.Empty;
|
|
|
|
[Phone(ErrorMessage = "Ungültiges Telefonnummernformat.")]
|
|
public string? PhoneNumber { get; set; } // Telefonnummer des Benutzers
|
|
|
|
[Required(ErrorMessage = "Aktuelles Passwort ist zur Bestätigung erforderlich.")]
|
|
public string CurrentPassword { get; set; } = string.Empty;
|
|
|
|
public Guid? DefaultShippingAddressId { get; set; }
|
|
public Guid? DefaultBillingAddressId { get; set; }
|
|
}
|
|
} |