|  |  | 1 |  | using LGDXRobotCloud.Data.Models.DTOs.V1.Responses; | 
|  |  | 2 |  |  | 
|  |  | 3 |  | namespace LGDXRobotCloud.Data.Models.Business.Navigation; | 
|  |  | 4 |  |  | 
|  |  | 5 |  | public record WaypointListBusinessModel | 
|  |  | 6 |  | { | 
|  |  | 7 |  |   public required int Id { get; set; } | 
|  |  | 8 |  |  | 
|  |  | 9 |  |   public required string Name { get; set; } | 
|  |  | 10 |  |  | 
|  |  | 11 |  |   public required int RealmId { get; set; } | 
|  |  | 12 |  |  | 
|  |  | 13 |  |   public required string RealmName { get; set; } | 
|  |  | 14 |  |  | 
|  |  | 15 |  |   public required double X { get; set; } | 
|  |  | 16 |  |  | 
|  |  | 17 |  |   public required double Y { get; set; } | 
|  |  | 18 |  |  | 
|  |  | 19 |  |   public required double Rotation { get; set; } | 
|  |  | 20 |  | } | 
|  |  | 21 |  |  | 
|  |  | 22 |  | public static class WaypointListBusinessModelExtensions | 
|  |  | 23 |  | { | 
|  |  | 24 |  |   public static WaypointListDto ToDto(this WaypointListBusinessModel model) | 
|  | 0 | 25 |  |   { | 
|  | 0 | 26 |  |     return new WaypointListDto { | 
|  | 0 | 27 |  |       Id = model.Id, | 
|  | 0 | 28 |  |       Name = model.Name, | 
|  | 0 | 29 |  |       Realm = new RealmSearchDto { | 
|  | 0 | 30 |  |         Id = model.RealmId, | 
|  | 0 | 31 |  |         Name = model.RealmName, | 
|  | 0 | 32 |  |       }, | 
|  | 0 | 33 |  |       X = model.X, | 
|  | 0 | 34 |  |       Y = model.Y, | 
|  | 0 | 35 |  |       Rotation = model.Rotation, | 
|  | 0 | 36 |  |     }; | 
|  | 0 | 37 |  |   } | 
|  |  | 38 |  |  | 
|  |  | 39 |  |   public static IEnumerable<WaypointListDto> ToDto(this IEnumerable<WaypointListBusinessModel> models) | 
|  | 0 | 40 |  |   { | 
|  | 0 | 41 |  |     return models.Select(model => model.ToDto()); | 
|  | 0 | 42 |  |   } | 
|  |  | 43 |  | } |