CONTROLLERS.

This commit is contained in:
MarcEricMartel
2022-11-02 18:00:48 -07:00
parent 8b776405be
commit c59c7ee9f1
7 changed files with 235 additions and 27 deletions

View File

@@ -0,0 +1,17 @@
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; }
}