prueba tecnica
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
namespace ProximaContracts.Domain.Contracts.DTOs.Request
|
||||
{
|
||||
public class ContractByIdRequestDto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user