order by id fix

This commit is contained in:
Tizian.Breuch
2025-08-01 14:56:40 +02:00
parent 587990295d
commit 96f082b38f
5 changed files with 64 additions and 35 deletions

View File

@@ -1,9 +1,6 @@
// Auto-generiert von CreateWebshopFiles.ps1
// src/Webshop.Application/DTOs/Customers/AddressDto.cs
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Domain.Enums;
namespace Webshop.Application.DTOs.Customers
{
@@ -16,5 +13,9 @@ namespace Webshop.Application.DTOs.Customers
public string PostalCode { get; set; } = string.Empty;
public string Country { get; set; } = string.Empty;
public AddressType Type { get; set; }
// F<>gen Sie auch FirstName und LastName hinzu, falls diese in der Adresse gespeichert sind
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
}
}
}

View File

@@ -2,6 +2,7 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Application.DTOs.Customers;
using Webshop.Domain.Entities;
@@ -24,8 +25,9 @@ namespace Webshop.Application.DTOs.Orders
public DateTimeOffset? DeliveredDate { get; set; }
public PaymentStatus PaymentStatus { get; set; }
public List<OrderItemDto> OrderItems { get; set; } = new List<OrderItemDto>();
public Address ShippingAddress { get; set; } = default!; // << HINZUF<EFBFBD>GEN >>
public Address BillingAddress { get; set; } = default!; // << HINZUF<EFBFBD>GEN >>
public AddressDto ShippingAddress { get; set; } = default!; // << KORREKTUR: Typ zu AddressDto ge<67>ndert >>
public AddressDto BillingAddress { get; set; } = default!; // << KORREKTUR: Typ zu AddressDto ge<67>ndert >>
public string PaymentMethod { get; set; } = string.Empty; // << HINZUF<55>GEN >>
}
}