|  |  | 1 |  | using LGDXRobotCloud.Data.Models.DTOs.V1.Responses; | 
|  |  | 2 |  |  | 
|  |  | 3 |  | namespace LGDXRobotCloud.Data.Models.Business.Administration; | 
|  |  | 4 |  |  | 
|  |  | 5 |  | public record RobotCertificateListBusinessModel | 
|  |  | 6 |  | { | 
|  | 9 | 7 |  |   public required Guid Id { get; set; } | 
|  |  | 8 |  |  | 
|  | 6 | 9 |  |   public required string Thumbprint { get; set; } | 
|  |  | 10 |  |  | 
|  | 6 | 11 |  |   public string? ThumbprintBackup { get; set; } | 
|  |  | 12 |  |  | 
|  | 6 | 13 |  |   public required DateTime NotBefore { get; set; } | 
|  |  | 14 |  |  | 
|  | 6 | 15 |  |   public required DateTime NotAfter { get; set; } | 
|  |  | 16 |  | } | 
|  |  | 17 |  |  | 
|  |  | 18 |  | public static class RobotCertificateListBusinessModelExtensions | 
|  |  | 19 |  | { | 
|  |  | 20 |  |   public static RobotCertificateListDto ToDto(this RobotCertificateListBusinessModel robotCertificate) | 
|  |  | 21 |  |   { | 
|  |  | 22 |  |     return new RobotCertificateListDto{ | 
|  |  | 23 |  |       Id = robotCertificate.Id, | 
|  |  | 24 |  |       Thumbprint = robotCertificate.Thumbprint, | 
|  |  | 25 |  |       ThumbprintBackup = robotCertificate.ThumbprintBackup, | 
|  |  | 26 |  |       NotBefore = robotCertificate.NotBefore, | 
|  |  | 27 |  |       NotAfter = robotCertificate.NotAfter | 
|  |  | 28 |  |     }; | 
|  |  | 29 |  |   } | 
|  |  | 30 |  |  | 
|  |  | 31 |  |   public static IEnumerable<RobotCertificateListDto> ToDto(this IEnumerable<RobotCertificateListBusinessModel> robotCert | 
|  |  | 32 |  |   { | 
|  |  | 33 |  |     return robotCertificates.Select(a => a.ToDto()); | 
|  |  | 34 |  |   } | 
|  |  | 35 |  | } |