register
This commit is contained in:
27
Moonlight/App/Models/Forms/UserDataModel.cs
Normal file
27
Moonlight/App/Models/Forms/UserDataModel.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Moonlight.App.Models.Forms;
|
||||
|
||||
public class UserDataModel
|
||||
{
|
||||
[Required]
|
||||
public string FirstName { get; set; } = "";
|
||||
|
||||
[Required]
|
||||
public string LastName { get; set; } = "";
|
||||
|
||||
[Required]
|
||||
public string Email { get; set; } = "";
|
||||
|
||||
[Required]
|
||||
public string Address { get; set; } = "";
|
||||
|
||||
[Required]
|
||||
public string City { get; set; } = "";
|
||||
|
||||
[Required]
|
||||
public string State { get; set; } = "";
|
||||
|
||||
[Required]
|
||||
public string Country { get; set; } = "";
|
||||
}
|
||||
21
Moonlight/App/Models/Forms/UserRegisterModel.cs
Normal file
21
Moonlight/App/Models/Forms/UserRegisterModel.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Moonlight.App.Models.Forms;
|
||||
|
||||
public class UserRegisterModel
|
||||
{
|
||||
[Required, EmailAddress]
|
||||
public string Email { get; set; }
|
||||
|
||||
[Required, MinLength(3)]
|
||||
public string FirstName { get; set; }
|
||||
|
||||
[Required, MinLength(3)]
|
||||
public string LastName { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Password { get; set; }
|
||||
|
||||
[Required]
|
||||
public string ConfirmPassword { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user