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.
25 lines
570 B
25 lines
570 B
using DTO;
|
|
using Model;
|
|
|
|
namespace APILOL.Mapper
|
|
{
|
|
public static class RuneMapper
|
|
{
|
|
public static RuneDTO ToDto(this Rune rune)
|
|
{
|
|
return new RuneDTO()
|
|
{
|
|
Name = rune.Name,
|
|
Description = rune.Description,
|
|
Image = rune.Image.Base64,
|
|
Family = rune.Family,
|
|
};
|
|
}
|
|
|
|
public static Rune ToModel(this RuneDTO rune)
|
|
{
|
|
return new Rune(rune.Name, rune.Family, rune.Image, rune.Image, rune.Description);
|
|
}
|
|
}
|
|
}
|