Implementación AnomalIA - Fix de dropdowns y permisos.
All checks were successful
Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 5m17s
All checks were successful
Optimized Build and Deploy / remote-build-and-deploy (push) Successful in 5m17s
This commit is contained in:
@@ -37,6 +37,12 @@ namespace GestionIntegral.Api.Services.Impresion
|
||||
return estadosBobina.Select(MapToDto);
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<EstadoBobinaDropdownDto>> ObtenerTodosDropdownAsync()
|
||||
{
|
||||
var estadosBobina = await _estadoBobinaRepository.GetAllDropdownAsync();
|
||||
return estadosBobina;
|
||||
}
|
||||
|
||||
public async Task<EstadoBobinaDto?> ObtenerPorIdAsync(int id)
|
||||
{
|
||||
var estadoBobina = await _estadoBobinaRepository.GetByIdAsync(id);
|
||||
|
||||
@@ -8,6 +8,7 @@ namespace GestionIntegral.Api.Services.Impresion
|
||||
public interface IEstadoBobinaService
|
||||
{
|
||||
Task<IEnumerable<EstadoBobinaDto>> ObtenerTodosAsync(string? denominacionFilter);
|
||||
Task<IEnumerable<EstadoBobinaDropdownDto>> ObtenerTodosDropdownAsync();
|
||||
Task<EstadoBobinaDto?> ObtenerPorIdAsync(int id);
|
||||
Task<(EstadoBobinaDto? EstadoBobina, string? Error)> CrearAsync(CreateEstadoBobinaDto createDto, int idUsuario);
|
||||
Task<(bool Exito, string? Error)> ActualizarAsync(int id, UpdateEstadoBobinaDto updateDto, int idUsuario);
|
||||
|
||||
@@ -8,6 +8,7 @@ namespace GestionIntegral.Api.Services.Impresion
|
||||
public interface ITipoBobinaService
|
||||
{
|
||||
Task<IEnumerable<TipoBobinaDto>> ObtenerTodosAsync(string? denominacionFilter);
|
||||
Task<IEnumerable<TipoBobinaDto>> ObtenerTodosDropdownAsync();
|
||||
Task<TipoBobinaDto?> ObtenerPorIdAsync(int id);
|
||||
Task<(TipoBobinaDto? TipoBobina, string? Error)> CrearAsync(CreateTipoBobinaDto createDto, int idUsuario);
|
||||
Task<(bool Exito, string? Error)> ActualizarAsync(int id, UpdateTipoBobinaDto updateDto, int idUsuario);
|
||||
|
||||
@@ -36,6 +36,12 @@ namespace GestionIntegral.Api.Services.Impresion
|
||||
return tiposBobina.Select(MapToDto);
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<TipoBobinaDto>> ObtenerTodosDropdownAsync()
|
||||
{
|
||||
var tiposBobina = await _tipoBobinaRepository.GetAllDropdownAsync();
|
||||
return tiposBobina.Select(MapToDto);
|
||||
}
|
||||
|
||||
public async Task<TipoBobinaDto?> ObtenerPorIdAsync(int id)
|
||||
{
|
||||
var tipoBobina = await _tipoBobinaRepository.GetByIdAsync(id);
|
||||
|
||||
Reference in New Issue
Block a user