Feat Widgets Cards y Optimización de Consultas

This commit is contained in:
2025-09-28 19:04:09 -03:00
parent 67634ae947
commit 3b0eee25e6
71 changed files with 5415 additions and 442 deletions

View File

@@ -0,0 +1,22 @@
// src/Elecciones.Core/DTOs/ApiResponses/ResumenProvinciaDto.cs
namespace Elecciones.Core.DTOs.ApiResponses;
public class ResultadoCandidatoDto
{
public string AgrupacionId { get; set; } = string.Empty;
public string? NombreCandidato { get; set; }
public string NombreAgrupacion { get; set; } = null!;
public string? FotoUrl { get; set; }
public string? Color { get; set; }
public decimal Porcentaje { get; set; }
public long Votos { get; set; }
public int BancasObtenidas { get; set; }
}
public class ResumenProvinciaDto
{
public string ProvinciaId { get; set; } = null!; // Corresponde al DistritoId
public string ProvinciaNombre { get; set; } = null!;
public EstadoRecuentoDto? EstadoRecuento { get; set; }
public List<ResultadoCandidatoDto> Resultados { get; set; } = new();
}