19 lines
387 B
C#
19 lines
387 B
C#
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();
|
|
}
|
|
}
|