15 lines
		
	
	
		
			548 B
		
	
	
	
		
			C#
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			548 B
		
	
	
	
		
			C#
		
	
	
	
	
	
|  | using System.ComponentModel.DataAnnotations; | ||
|  | 
 | ||
|  | namespace GestionIntegral.Api.Dtos.Impresion | ||
|  | { | ||
|  |     public class UpdateTiradaRequestDto | ||
|  |     { | ||
|  |         [Required, Range(1, int.MaxValue)] | ||
|  |         public int Ejemplares { get; set; } | ||
|  | 
 | ||
|  |         [Required] | ||
|  |         // No necesitamos MinLength(1), ya que una tirada podría quedar sin secciones si el usuario las borra todas. | ||
|  |         // Por ahora lo quitamos para más flexibilidad. | ||
|  |         public List<UpdateDetalleSeccionTiradaDto> Secciones { get; set; } = new List<UpdateDetalleSeccionTiradaDto>(); | ||
|  |     } | ||
|  | } |