GGMM/GrossesMitaines/GrossesMitainesAPI/Models/SignUpUserModel.cs

18 lines
527 B
C#
Raw Normal View History

2022-11-02 21:00:48 -04:00
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; }
}