This commit is contained in:
Tizian.Breuch
2025-09-25 16:18:44 +02:00
parent d4dae319f3
commit 90383f2068
4 changed files with 140 additions and 162 deletions

View File

@@ -0,0 +1,21 @@
// src/Webshop.Application/DTOs/Customers/CreateAddressDto.cs
using System.ComponentModel.DataAnnotations;
using Webshop.Domain.Enums;
namespace Webshop.Application.DTOs.Customers
{
public class CreateAddressDto
{
[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; }
}
}