Adress und shipping
This commit is contained in:
21
Webshop.Application/Services/Customers/CreateAddressDto.cs
Normal file
21
Webshop.Application/Services/Customers/CreateAddressDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user