aufrüumen
This commit is contained in:
20
Webshop.Application/DTOs/Customers/AddressDto.cs
Normal file
20
Webshop.Application/DTOs/Customers/AddressDto.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs.Customers
|
||||
{
|
||||
public class AddressDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Street { get; set; } = string.Empty;
|
||||
public string HouseNumber { get; set; } = string.Empty;
|
||||
public string City { get; set; } = string.Empty;
|
||||
public string PostalCode { get; set; } = string.Empty;
|
||||
public string Country { get; set; } = string.Empty;
|
||||
public AddressType Type { get; set; }
|
||||
}
|
||||
}
|
||||
20
Webshop.Application/DTOs/Customers/CustomerDto.cs
Normal file
20
Webshop.Application/DTOs/Customers/CustomerDto.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs.Customers
|
||||
{
|
||||
public class CustomerDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public string? PhoneNumber { get; set; }
|
||||
public Guid? DefaultShippingAddressId { get; set; }
|
||||
public Guid? DefaultBillingAddressId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Webshop.Application.DTOs.Customers
|
||||
{
|
||||
public class UpdateCustomerProfileDto
|
||||
{
|
||||
[Required]
|
||||
[MaxLength(100)]
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[MaxLength(100)]
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
|
||||
// PhoneNumber könnte auch hier sein, falls der User das ändern darf
|
||||
// public string? PhoneNumber { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user