Import from internal git
This commit is contained in:
18
Generator/Mappers/PackageDataMapper.cs
Normal file
18
Generator/Mappers/PackageDataMapper.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Core;
|
||||
using Core.Dto;
|
||||
|
||||
namespace Generator.Mappers;
|
||||
|
||||
public static class PackageDataMapper
|
||||
{
|
||||
public static List<PackageData> Map(this List<PackageDataDto> dto)
|
||||
{
|
||||
return dto.Select(pdd
|
||||
=> new PackageData()
|
||||
{
|
||||
Id = pdd.Id,
|
||||
Name = pdd.Name,
|
||||
Version = pdd.Version
|
||||
}).ToList();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user