prueba tecnica
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user