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,13 @@
using Rs_system.Models;
namespace Rs_system.Services;
public interface IPrestamoService
{
Task<IEnumerable<Prestamo>> GetHistorialPrestamosAsync(int limit = 100);
Task<IEnumerable<Prestamo>> GetPrestamosActivosAsync();
Task<Prestamo?> GetPrestamoByIdAsync(long id);
Task<bool> RegistrarPrestamoAsync(int articuloId, int cantidad, string personaNombre, string? personaIdentificacion, DateTime? fechaDevolucionEstimada, string observacion, string usuario);
Task<bool> RegistrarDevolucionAsync(long prestamoId, string observacion, string usuario);
Task<bool> RegistrarDevolucionParcialAsync(long prestamoId, List<string> codigosDevolucion, string observacion, string usuario);
}