Refactor services to use repository pattern for database operations

- Updated EmpresaReportService to utilize ICatalogoRepository for stored procedure calls.
- Refactored InformeService to include new method for executing Crystal Reports stored procedures.
- Simplified LeadService by removing direct database connections and using ILeadRepository and ILeadQueryRepository.
- Modified ReportService to leverage ICatalogoRepository for querying stored procedures.
- Streamlined UsuarioService to use IUsuarioRepository for user authentication and profile retrieval.
- Added new CatalogoService to handle various catalog-related queries and operations.
- Introduced ArqueoRepository and CatalogoRepository for managing database interactions.
- Created DTOs for various entities including Alumno, Contrato, Cotizacion, Descuento, Documento, Empresa, and Propuesta.
- Implemented BaseController and ErrorController for standardized API responses and error handling.
- Added QuestPDF package for PDF generation capabilities.
This commit is contained in:
2026-07-08 13:57:29 -04:00
parent 235f15e1e7
commit e7bda29ef3
51 changed files with 845 additions and 876 deletions
@@ -0,0 +1,7 @@
namespace Ventas.Core.Interfaces;
public interface IArqueoRepository
{
Task<IEnumerable<Dictionary<string, object>>> TodosHoyAsync(DateTime fecha);
Task<IEnumerable<Dictionary<string, object>>> HoyAsync(string usuarioId, DateTime fecha);
}