43 lines
979 B
C#
43 lines
979 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Registration.API.RequestModels;
|
|
|
|
public class ParticipantRegistrationRequest
|
|
{
|
|
[Required]
|
|
public bool? IsMember { get; set; }
|
|
|
|
[Required]
|
|
public string FirstName { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string SurName { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string Grade { get; set; } = string.Empty;
|
|
|
|
public string? PhoneNumber { get; set; }
|
|
|
|
[EmailAddress]
|
|
public string? Email { get; set; }
|
|
|
|
[Required]
|
|
public string GuardianName { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string GuardianPhoneNumber { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[EmailAddress]
|
|
public string GuardianEmail { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public bool? IsVisitor { get; set; }
|
|
|
|
[Required]
|
|
public bool? HasApprovedGdpr { get; set; }
|
|
|
|
public string? Friends { get; set; }
|
|
|
|
public string? SpecialDiet { get; set; }
|
|
}
|