using System.ComponentModel.DataAnnotations; namespace SharedModels.DataTransferObjects; public class VehicleDto : CreateVehicleDto { public int Id { get; set; } } public class CreateVehicleDto { [Required] [MaxLength(8)] public string? Number { get; set; } [Required] public string? Type { get; set; } [Required] [Range(10, 100)] public int Capacity { get; set; } [Required] public bool HasClimateControl { get; set; } = false; [Required] public bool HasWiFi { get; set; } = false; [Required] public bool HasWC { get; set; } = false; [Required] public bool HasStewardess { get; set; } = false; [Required] public bool HasTV { get; set; } = false; [Required] public bool HasOutlet { get; set; } = false; [Required] public bool HasBelts { get; set; } = false; [Required] public int CompanyId { get; set; } } public class UpdateVehicleDto : CreateVehicleDto { [Required] public int Id { get; set; } }