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.

11 lines
384 B

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