18 lines
527 B
C#
18 lines
527 B
C#
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|||
|
namespace GrossesMitainesAPI.Models;
|
|||
|
public class SignUpUserModel {
|
|||
|
[Required, MinLength(2), MaxLength(30)]
|
|||
|
public string FirstName { get; set; }
|
|||
|
[Required, MinLength(1), MaxLength(30)]
|
|||
|
public string LastName { get; set; }
|
|||
|
[Required, EmailAddress]
|
|||
|
public string Email { get; set; }
|
|||
|
[Required, Phone]
|
|||
|
public string Phone { get; set; }
|
|||
|
[Required]
|
|||
|
public string Password { get; set; }
|
|||
|
public List<AddressModel> Adresses { get; set; }
|
|||
|
}
|
|||
|
|