Feat: Se agregan servicios y controladores para ABM de suscriptores

This commit is contained in:
2025-07-30 09:48:05 -03:00
parent 19e7192a16
commit f09c795fb0
13 changed files with 623 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using GestionIntegral.Api.Data.Repositories.Suscripciones;
using GestionIntegral.Api.Dtos.Suscripciones;
namespace GestionIntegral.Api.Services.Suscripciones
{
public class FormaPagoService : IFormaPagoService
{
private readonly IFormaPagoRepository _formaPagoRepository;
public FormaPagoService(IFormaPagoRepository formaPagoRepository)
{
_formaPagoRepository = formaPagoRepository;
}
public async Task<IEnumerable<FormaPagoDto>> ObtenerTodos()
{
var formasDePago = await _formaPagoRepository.GetAllAsync();
return formasDePago.Select(fp => new FormaPagoDto
{
IdFormaPago = fp.IdFormaPago,
Nombre = fp.Nombre,
RequiereCBU = fp.RequiereCBU
});
}
}
}