prueba tecnica

This commit is contained in:
Alejandro
2025-06-15 18:29:25 +02:00
parent 9758ee0bc6
commit d97e55a83f
127 changed files with 6488 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
namespace ProximaContracts.Domain.Contracts.DTOs.Request
{
public class ContractByIdRequestDto
{
public int Id { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
using System.ComponentModel.DataAnnotations;
namespace ProximaContracts.Domain.Contracts.DTOs.Request
{
public class CreateContractRequestDto
{
[Required]
[MaxLength(20)]
public string ContractorIdNumber { get; set; } = null!;
[Required]
[MaxLength(50)]
public string ContractorName { get; set; } = null!;
[Required]
[MaxLength(100)]
public string ContractorSurname { get; set; } = null!;
[Required]
[Range(1, int.MaxValue, ErrorMessage = "RateId must be greater than 0.")]
public int RateId { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System.ComponentModel.DataAnnotations;
namespace ProximaContracts.Domain.Contracts.DTOs.Request
{
public class UpdateContractRequestDto
{
[Required]
public int ContractId { get; set; }
[Required]
public int RateId { get; set; }
public string? ContractorIdNumber { get; set; }
public string? ContractorName { get; set; }
public string? ContractorSurname { get; set; }
public DateTime? ContractInitDate { get; set; }
}
}