|  |  | 1 |  | using LGDXRobotCloud.Data.Models.DTOs.V1.Responses; | 
|  |  | 2 |  |  | 
|  |  | 3 |  | namespace LGDXRobotCloud.Data.Models.Business.Administration; | 
|  |  | 4 |  |  | 
|  |  | 5 |  | public record LgdxUserListBusinessModel | 
|  |  | 6 |  | { | 
|  |  | 7 |  |   public required Guid Id { get; set; } | 
|  |  | 8 |  |  | 
|  |  | 9 |  |   public required string Name { get; set; } | 
|  |  | 10 |  |  | 
|  |  | 11 |  |   public required string UserName { get; set; } | 
|  |  | 12 |  |  | 
|  |  | 13 |  |   public required bool TwoFactorEnabled { get; set; } | 
|  |  | 14 |  |  | 
|  |  | 15 |  |   public required int AccessFailedCount { get; set; } | 
|  |  | 16 |  | } | 
|  |  | 17 |  |  | 
|  |  | 18 |  | public static class LgdxUserListBusinessModelExtensions | 
|  |  | 19 |  | { | 
|  |  | 20 |  |   public static LgdxUserListDto ToDto(this LgdxUserListBusinessModel model) | 
|  | 0 | 21 |  |   { | 
|  | 0 | 22 |  |     return new LgdxUserListDto { | 
|  | 0 | 23 |  |       Id = model.Id, | 
|  | 0 | 24 |  |       Name = model.Name, | 
|  | 0 | 25 |  |       UserName = model.UserName, | 
|  | 0 | 26 |  |       TwoFactorEnabled = model.TwoFactorEnabled, | 
|  | 0 | 27 |  |       AccessFailedCount = model.AccessFailedCount, | 
|  | 0 | 28 |  |     }; | 
|  | 0 | 29 |  |   } | 
|  |  | 30 |  |  | 
|  |  | 31 |  |   public static IEnumerable<LgdxUserListDto> ToDto(this IEnumerable<LgdxUserListBusinessModel> model) | 
|  | 0 | 32 |  |   { | 
|  | 0 | 33 |  |     return model.Select(m => m.ToDto()); | 
|  | 0 | 34 |  |   } | 
|  |  | 35 |  | } |