Applications.razor for applicants
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
namespace ApplicationLayer.Services.AuthServices.Common
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ApplicationLayer.Services.AuthServices.Common
|
||||
{
|
||||
public record AuthToken(string Token);
|
||||
public class AuthToken
|
||||
{
|
||||
[Required] public string Token { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Domains.VisaApplicationDomain;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Domains.VisaApplicationDomain;
|
||||
|
||||
namespace ApplicationLayer.Services.VisaApplications.Models;
|
||||
|
||||
@@ -6,38 +7,48 @@ namespace ApplicationLayer.Services.VisaApplications.Models;
|
||||
public class VisaApplicationModelForApplicant
|
||||
{
|
||||
/// <inheritdoc cref="VisaApplication.Id" />
|
||||
[Required]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.Status" />
|
||||
[Required]
|
||||
public ApplicationStatus Status { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.ReentryPermit" />
|
||||
public ReentryPermitModel? ReentryPermit { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.DestinationCountry" />
|
||||
[Required]
|
||||
public string DestinationCountry { get; set; } = null!;
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.PastVisas" />
|
||||
[Required]
|
||||
public List<PastVisaModel> PastVisas { get; set; } = null!;
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.PermissionToDestCountry" />
|
||||
public PermissionToDestCountryModel? PermissionToDestCountry { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.PastVisits" />
|
||||
[Required]
|
||||
public List<PastVisitModel> PastVisits { get; set; } = null!;
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.VisaCategory" />
|
||||
[Required]
|
||||
public VisaCategory VisaCategory { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.ForGroup" />
|
||||
[Required]
|
||||
public bool ForGroup { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.RequestedNumberOfEntries" />
|
||||
[Required]
|
||||
public RequestedNumberOfEntries RequestedNumberOfEntries { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.RequestDate" />
|
||||
[Required]
|
||||
public DateTime RequestDate { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.ValidDaysRequested" />
|
||||
[Required]
|
||||
public int ValidDaysRequested { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using ApplicationLayer.Services.Applicants.Models;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using ApplicationLayer.Services.Applicants.Models;
|
||||
using Domains.VisaApplicationDomain;
|
||||
|
||||
namespace ApplicationLayer.Services.VisaApplications.Models;
|
||||
@@ -7,40 +8,51 @@ namespace ApplicationLayer.Services.VisaApplications.Models;
|
||||
public class VisaApplicationModelForAuthority
|
||||
{
|
||||
/// <inheritdoc cref="VisaApplication.Id" />
|
||||
[Required]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
/// Applicant of application
|
||||
[Required]
|
||||
public ApplicantModel Applicant { get; set; } = null!;
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.Status" />
|
||||
[Required]
|
||||
public ApplicationStatus Status { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.ReentryPermit" />
|
||||
public ReentryPermitModel? ReentryPermit { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.DestinationCountry" />
|
||||
[Required]
|
||||
public string DestinationCountry { get; set; } = null!;
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.PastVisas" />
|
||||
[Required]
|
||||
public List<PastVisaModel> PastVisas { get; set; } = null!;
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.PermissionToDestCountry" />
|
||||
public PermissionToDestCountryModel? PermissionToDestCountry { get; set; }
|
||||
|
||||
[Required]
|
||||
public List<PastVisitModel> PastVisits { get; set; } = null!;
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.VisaCategory" />
|
||||
[Required]
|
||||
public VisaCategory VisaCategory { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.ForGroup" />
|
||||
[Required]
|
||||
public bool ForGroup { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.RequestedNumberOfEntries" />
|
||||
[Required]
|
||||
public RequestedNumberOfEntries RequestedNumberOfEntries { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.RequestDate" />
|
||||
[Required]
|
||||
public DateTime RequestDate { get; set; }
|
||||
|
||||
/// <inheritdoc cref="VisaApplication.ValidDaysRequested" />
|
||||
[Required]
|
||||
public int ValidDaysRequested { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user