This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace Models.Requests
|
||||
{
|
||||
public class CaptchaVerifyRequest
|
||||
{
|
||||
public string? Token { get; set; }
|
||||
public string? ExpectedAction { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Models.Requests
|
||||
{
|
||||
public sealed class ContactRequest
|
||||
{
|
||||
[Required, StringLength(100)]
|
||||
public string Name { get; set; } = "";
|
||||
|
||||
[Required, EmailAddress, StringLength(200)]
|
||||
public string Email { get; set; } = "";
|
||||
|
||||
[Required, StringLength(200)]
|
||||
public string Subject { get; set; } = "";
|
||||
|
||||
[Required, StringLength(5000)]
|
||||
public string Message { get; set; } = "";
|
||||
|
||||
// Token returned by the captcha widget
|
||||
[Required]
|
||||
public string CaptchaToken { get; set; } = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Models.Requests;
|
||||
|
||||
public sealed class JobMatchRequest
|
||||
{
|
||||
public string? CvDocumentId { get; set; }
|
||||
public string? JobUrl { get; set; }
|
||||
public string? JobDescription { get; set; }
|
||||
public bool GdprConsent { get; set; }
|
||||
public string? CaptchaToken { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Models.Requests
|
||||
{
|
||||
public sealed class SubscribeRequest
|
||||
{
|
||||
|
||||
[Required, EmailAddress, StringLength(200)]
|
||||
public string Email { get; set; } = "";
|
||||
|
||||
// Token returned by the captcha widget
|
||||
[Required]
|
||||
public string CaptchaToken { get; set; } = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Models.Requests
|
||||
{
|
||||
public sealed class UploadCvRequest
|
||||
{
|
||||
[Required]
|
||||
public IFormFile Cv { get; set; } = default!;
|
||||
|
||||
public bool GdprConsent { get; set; }
|
||||
public string? CaptchaToken { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user