laatzen/LaaProductionWeb/LaaProduction.SharedModels/LDAPRegisterModel.cs
2025-02-04 15:28:27 +01:00

43 lines
1.2 KiB
C#

namespace LaaProduction.SharedModels
{
using System.ComponentModel.DataAnnotations;
public class LDAPRegisterModel
{
[Required(AllowEmptyStrings = false)]
public string Assembly { get; set; }
public int MajorV { get; set; }
public int MinorV { get; set; }
public int BuildV { get; set; }
[Range(1, int.MaxValue, ErrorMessage = "Employee id is required.")]
public int EmployeeId { get; set; }
[Required(AllowEmptyStrings = false)]
public string FirstName { get; set; }
[Required(AllowEmptyStrings = false)]
public string LastName { get; set; }
public string Phone { get; set; }
public string Email { get; set; }
[Required(AllowEmptyStrings = false)]
public string Username { get; set; }
[Required(AllowEmptyStrings = false)]
public string DomainName { get; set; }
[Required(AllowEmptyStrings = false)]
public string Password { get; set; }
[Required(AllowEmptyStrings = false)]
[Compare(nameof(Password), ErrorMessage = "Password and password confirmation did not match.")]
public string ConfirmPassword { get; set; }
}
}