repository migration

This commit is contained in:
2025-05-20 11:46:50 -04:00
commit bf536b8774
213 changed files with 117679 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using Microsoft.AspNetCore.Mvc.Rendering;
using System.ComponentModel.DataAnnotations;
namespace WhiteLagoon.Web.ViewModels
{
public class RegisterVM
{
[Required]
public string Email { get; set; }
[Required]
[DataType(DataType.Password)]
public string Password { get; set; }
[Required]
[DataType(DataType.Password)]
[Compare(nameof(Password))]
[Display(Name = "Confirm password")]
public string ConfirmPassword { get; set; }
[Required]
public string Name { get; set; }
[Display(Name="Phone Number")]
public string? PhoneNumber { get; set; }
public string? RedirectUrl { get; set; }
public string? Role { get; set; }
[ValidateNever]
public IEnumerable<SelectListItem>? RoleList { get; set; }
}
}