This commit is contained in:
2026-02-01 14:28:17 -06:00
parent 700af7ea60
commit 1784131456
109 changed files with 19894 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using Rs_system.Models.ViewModels;
namespace Rs_system.Services;
public interface IArticuloService
{
Task<IEnumerable<ArticuloViewModel>> GetAllAsync(string? search = null, int? categoriaId = null, int? ubicacionId = null, int? estadoId = null);
Task<ArticuloViewModel?> GetByIdAsync(int id);
Task<bool> CreateAsync(ArticuloViewModel viewModel, string createdBy);
Task<bool> UpdateAsync(ArticuloViewModel viewModel);
Task<bool> DeleteAsync(int id);
Task<bool> ExistsCodigoAsync(string codigo, int? excludeId = null);
// Dropdown helpers
Task<IEnumerable<(int Id, string Nombre)>> GetCategoriasAsync();
Task<IEnumerable<(int Id, string Nombre, string Color)>> GetEstadosAsync();
Task<IEnumerable<(int Id, string Nombre)>> GetUbicacionesAsync();
}