You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LOLProject/Sources/APILOL/Mapper/RunePageMapper.cs

23 lines
469 B

using DTO;
using Model;
namespace APILOL.Mapper
{
public static class RunePageMapper
{
public static RunePageDTO ToDto(this RunePage runePage)
{
return new RunePageDTO()
{
Name = runePage.Name,
Runes = runePage.Runes
};
}
public static RunePage ToModel(this RunePageDTO runePage)
{
return new RunePage(runePage.Name);
}
}
}