18 lines
		
	
	
		
			941 B
		
	
	
	
		
			C#
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			941 B
		
	
	
	
		
			C#
		
	
	
	
	
	
|  | using GestionIntegral.Api.Models.Distribucion; | ||
|  | using System; | ||
|  | using System.Collections.Generic; | ||
|  | using System.Data; | ||
|  | using System.Threading.Tasks; | ||
|  | 
 | ||
|  | namespace GestionIntegral.Api.Data.Repositories.Distribucion | ||
|  | { | ||
|  |     public interface IControlDevolucionesRepository | ||
|  |     { | ||
|  |         Task<IEnumerable<ControlDevoluciones>> GetAllAsync(DateTime? fechaDesde, DateTime? fechaHasta, int? idEmpresa); | ||
|  |         Task<ControlDevoluciones?> GetByIdAsync(int idControl); | ||
|  |         Task<ControlDevoluciones?> GetByEmpresaAndFechaAsync(int idEmpresa, DateTime fecha, IDbTransaction? transaction = null); // Para validar unicidad | ||
|  |         Task<ControlDevoluciones?> CreateAsync(ControlDevoluciones nuevoControl, int idUsuario, IDbTransaction transaction); | ||
|  |         Task<bool> UpdateAsync(ControlDevoluciones controlAActualizar, int idUsuario, IDbTransaction transaction); | ||
|  |         Task<bool> DeleteAsync(int idControl, int idUsuario, IDbTransaction transaction); | ||
|  |     } | ||
|  | } |