21 lines
		
	
	
		
			916 B
		
	
	
	
		
			C#
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			916 B
		
	
	
	
		
			C#
		
	
	
	
	
	
|  | using GestionIntegral.Api.Models.Contables; | ||
|  | using System; | ||
|  | using System.Collections.Generic; | ||
|  | using System.Data; | ||
|  | using System.Threading.Tasks; | ||
|  | 
 | ||
|  | namespace GestionIntegral.Api.Data.Repositories.Contables | ||
|  | { | ||
|  |     public interface INotaCreditoDebitoRepository | ||
|  |     { | ||
|  |         Task<IEnumerable<NotaCreditoDebito>> GetAllAsync( | ||
|  |             DateTime? fechaDesde, DateTime? fechaHasta, | ||
|  |             string? destino, int? idDestino, int? idEmpresa, string? tipoNota); | ||
|  | 
 | ||
|  |         Task<NotaCreditoDebito?> GetByIdAsync(int idNota); | ||
|  |         Task<NotaCreditoDebito?> CreateAsync(NotaCreditoDebito nuevaNota, int idUsuario, IDbTransaction transaction); | ||
|  |         Task<bool> UpdateAsync(NotaCreditoDebito notaAActualizar, int idUsuario, IDbTransaction transaction); | ||
|  |         Task<bool> DeleteAsync(int idNota, int idUsuario, IDbTransaction transaction); | ||
|  |         // No se suele validar unicidad por referencia, ya que podría repetirse. | ||
|  |     } | ||
|  | } |