This commit is contained in:
Daniel Balk
2023-04-12 18:01:18 +02:00
parent 6e4a269c35
commit ecaab3a755
5 changed files with 128 additions and 28 deletions

View 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; } = "";
}

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