dtos neu und aufräumen
This commit is contained in:
19
Webshop.Application/DTOs/Email/ChangeEmailRequestDto.cs
Normal file
19
Webshop.Application/DTOs/Email/ChangeEmailRequestDto.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Webshop.Application.DTOs.Email
|
||||
{
|
||||
public class ChangeEmailRequestDto
|
||||
{
|
||||
[Required(ErrorMessage = "Neue E-Mail ist erforderlich.")]
|
||||
[EmailAddress(ErrorMessage = "Ungültiges E-Mail-Format.")]
|
||||
public string NewEmail { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "Aktuelles Passwort ist erforderlich.")]
|
||||
public string CurrentPassword { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Webshop.Application.DTOs.Email
|
||||
{
|
||||
public class ResendEmailConfirmationRequestDto
|
||||
{
|
||||
[Required]
|
||||
[EmailAddress]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user