26 lines
839 B
C#
26 lines
839 B
C#
// 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; }
|
|
|
|
[Required]
|
|
public string FirstName { get; set; } = string.Empty;
|
|
[Required]
|
|
public string LastName { get; set; } = string.Empty;
|
|
}
|
|
} |