27 lines
603 B
C#
27 lines
603 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Marco.Pms.Model.Dtos
|
|
{
|
|
public class RegisterDto
|
|
{
|
|
[Required]
|
|
public string Username { get; set; }
|
|
|
|
[Required]
|
|
[EmailAddress]
|
|
public string Email { get; set; }
|
|
|
|
[Required]
|
|
[MinLength(6)]
|
|
public string Password { get; set; }
|
|
|
|
[Compare("Password", ErrorMessage = "Passwords do not match.")]
|
|
public string ConfirmPassword { get; set; }
|
|
}
|
|
}
|