| | | 1 | | using FAU.Logica.DTOs; |
| | | 2 | | |
| | | 3 | | namespace FAU.Logica.Services; |
| | | 4 | | |
| | | 5 | | public interface IBeneficioSocialBeneficiarioService |
| | | 6 | | { |
| | | 7 | | Task<IReadOnlyList<BeneficiarioSocialDto>> ObtenerPorBeneficioAsync(long beneficioId, bool soloActivos = true); |
| | | 8 | | Task<BeneficiarioSocialDto?> ObtenerPorIdAsync(long id); |
| | | 9 | | Task<BeneficiarioSocialDto> AgregarAsync(long beneficioId, CrearBeneficiarioSocialRequest request, long usuarioId); |
| | | 10 | | Task<BeneficiarioSocialDto> ActualizarAsync(long id, ActualizarBeneficiarioSocialRequest request); |
| | | 11 | | Task EliminarAsync(long id); |
| | | 12 | | Task<string> SubirDocumentoAsync(long beneficiarioId, Stream contenido, string nombreOriginal, string contentType, l |
| | | 13 | | Task<IEnumerable<DocumentoDto>> ObtenerDocumentosAsync(long beneficiarioId); |
| | | 14 | | Task<(Stream Contenido, string NombreOriginal, string ContentType)> DescargarDocumentoAsync(long beneficiarioId, lon |
| | | 15 | | Task EliminarDocumentoAsync(long beneficiarioId, long documentoId); |
| | | 16 | | } |
| | | 17 | | |
| | | 18 | | public class DocumentoDto |
| | | 19 | | { |
| | 2 | 20 | | public long Id { get; set; } |
| | 5 | 21 | | public string NombreOriginal { get; set; } = string.Empty; |
| | 4 | 22 | | public string ContentType { get; set; } = string.Empty; |
| | 2 | 23 | | public long TamanioBytes { get; set; } |
| | 2 | 24 | | public DateTime FechaCarga { get; set; } |
| | | 25 | | } |