feat: Partido Politico Manual

This commit is contained in:
2025-10-20 14:38:10 -03:00
parent 99d56033b1
commit a78fcf66c0
12 changed files with 280 additions and 46 deletions

View File

@@ -0,0 +1,17 @@
// src/Elecciones.Core/DTOs/ApiRequests/CreateAgrupacionDto.cs
using System.ComponentModel.DataAnnotations;
namespace Elecciones.Core.DTOs.ApiRequests;
public class CreateAgrupacionDto
{
[Required(ErrorMessage = "El nombre es obligatorio.")]
[MaxLength(255)]
public string Nombre { get; set; } = null!;
[MaxLength(50)]
public string? NombreCorto { get; set; }
[MaxLength(7)] // Formato #RRGGBB
public string? Color { get; set; }
}