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.
LOL/Sources/apiLOL/DTO/SkinsMapper.cs

11 lines
388 B

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