15 lines
669 B
C#
15 lines
669 B
C#
|
|
using GestionIntegral.Api.Dtos.Impresion; // Para los DTOs
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace GestionIntegral.Api.Services.Impresion
|
||
|
|
{
|
||
|
|
public interface IPlantaService
|
||
|
|
{
|
||
|
|
Task<IEnumerable<PlantaDto>> ObtenerTodasAsync(string? nombreFilter, string? detalleFilter);
|
||
|
|
Task<PlantaDto?> ObtenerPorIdAsync(int id);
|
||
|
|
Task<(PlantaDto? Planta, string? Error)> CrearAsync(CreatePlantaDto createDto, int idUsuario);
|
||
|
|
Task<(bool Exito, string? Error)> ActualizarAsync(int id, UpdatePlantaDto updateDto, int idUsuario);
|
||
|
|
Task<(bool Exito, string? Error)> EliminarAsync(int id, int idUsuario);
|
||
|
|
}
|
||
|
|
}
|