GGMM/GrossesMitaines/GrossesMitainesAPI/Models/SignUpUserModel.cs
MarcEricMartel c59c7ee9f1 CONTROLLERS.
2022-11-02 18:00:48 -07:00

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; }
}