36 lines
1006 B
C#
36 lines
1006 B
C#
// src/Webshop.Application/DTOs/Customers/UpdateAddressDto.cs
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Webshop.Domain.Enums;
|
|
|
|
namespace Webshop.Application.DTOs.Customers
|
|
{
|
|
public class UpdateAddressDto
|
|
{
|
|
[Required]
|
|
public Guid Id { get; set; }
|
|
|
|
[Required]
|
|
public string Street { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string HouseNumber { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string City { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string PostalCode { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string Country { get; set; } = string.Empty;
|
|
|
|
public AddressType Type { get; set; }
|
|
|
|
// Fügen Sie auch FirstName und LastName hinzu, falls diese änderbar sein sollen
|
|
[Required]
|
|
public string FirstName { get; set; } = string.Empty;
|
|
[Required]
|
|
public string LastName { get; set; } = string.Empty;
|
|
}
|
|
} |