20 lines
600 B
C#
20 lines
600 B
C#
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;
|
|
}
|
|
}
|