address update

This commit is contained in:
Tizian.Breuch
2025-08-12 13:20:47 +02:00
parent b54fd49026
commit 3d206eda4e
4 changed files with 157 additions and 7 deletions

View File

@@ -0,0 +1,36 @@
// 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;
}
}