aufrüumen
This commit is contained in:
@@ -9,19 +9,10 @@ namespace Webshop.Application.DTOs.Auth
|
||||
{
|
||||
public class RegisterRequestDto
|
||||
{
|
||||
[Required(ErrorMessage = "E-Mail ist erforderlich.")]
|
||||
[EmailAddress(ErrorMessage = "Ungültiges E-Mail-Format.")]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "Passwort ist erforderlich.")]
|
||||
[MinLength(6, ErrorMessage = "Passwort muss mindestens 6 Zeichen lang sein.")]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "Passwortbestätigung ist erforderlich.")]
|
||||
[Compare("Password", ErrorMessage = "Passwörter stimmen nicht überein.")]
|
||||
public string ConfirmPassword { get; set; } = string.Empty;
|
||||
|
||||
public string? FirstName { get; set; }
|
||||
public string? LastName { get; set; }
|
||||
[Required][EmailAddress] public string Email { get; set; } = string.Empty;
|
||||
[Required][MinLength(6)] public string Password { get; set; } = string.Empty;
|
||||
[Required][Compare("Password")] public string ConfirmPassword { get; set; } = string.Empty;
|
||||
[Required] public string FirstName { get; set; } = string.Empty;
|
||||
[Required] public string LastName { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Categorys
|
||||
{
|
||||
public class CategoryDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Categorys
|
||||
{
|
||||
public class CreateCategoryDto
|
||||
{
|
||||
@@ -5,7 +5,7 @@ using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Customers
|
||||
{
|
||||
public class AddressDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Customers
|
||||
{
|
||||
public class CustomerDto
|
||||
{
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Discounts
|
||||
{
|
||||
public class DiscountDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public class CreateOrderDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public class CreateOrderItemDto
|
||||
{
|
||||
@@ -5,7 +5,7 @@ using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public class OrderDetailDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public class OrderItemDto
|
||||
{
|
||||
@@ -5,7 +5,7 @@ using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Orders
|
||||
{
|
||||
public class OrderSummaryDto
|
||||
{
|
||||
@@ -5,7 +5,7 @@ using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Payments
|
||||
{
|
||||
public class PaymentMethodDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Products
|
||||
{
|
||||
public class AdminProductDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Products
|
||||
{
|
||||
public class ProductDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Products
|
||||
{
|
||||
public class ProductVariantDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Reviews
|
||||
{
|
||||
public class CreateReviewDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Reviews
|
||||
{
|
||||
public class ReviewDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Shipping
|
||||
{
|
||||
public class ShippingMethodDto
|
||||
{
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Webshop.Application.DTOs
|
||||
namespace Webshop.Application.DTOs.Suppliers
|
||||
{
|
||||
public class SupplierDto
|
||||
{
|
||||
@@ -1,9 +1,4 @@
|
||||
// Auto-generiert von CreateWebshopFiles.ps1
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
// src/Webshop.Application/DTOs/Users/UserDto.cs
|
||||
namespace Webshop.Application.DTOs.Users
|
||||
{
|
||||
public class UserDto
|
||||
@@ -14,5 +9,10 @@ namespace Webshop.Application.DTOs.Users
|
||||
public List<string> Roles { get; set; } = new List<string>();
|
||||
public DateTimeOffset CreatedDate { get; set; }
|
||||
public bool EmailConfirmed { get; set; }
|
||||
|
||||
// Hinzugef<65>gte Felder
|
||||
public DateTimeOffset? LastActive { get; set; }
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user