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.

13 lines
386 B

using Model;
namespace apiLOL.DTO
{
public static class SkinMapper
{
public static SkinDTO ToDTO(this Skin skin)
=> new SkinDTO(skin.Name, skin.Price, skin.Icon, skin.Description);
public static Skin ToModel(this SkinDTO skinDTO)
=> new Skin(skinDTO.Name, null, skinDTO.Price, skinDTO.Icon,"",skinDTO.Description);
}
}