ok j'ai fait un commit sans fichier dedans oupsi

master
pasquizzat 2 years ago
parent 31aa15ace3
commit 440c62d49d

@ -18,6 +18,7 @@ namespace ApiDePaul
champ.Name = c.Name;
champ.Bio = c.Bio;
champ.Icon = c.Icon;
champ.Image = c.Image.ToString();
champ.Characteristics = new List<Tuple<string, int>>();
foreach(var ch in c.Characteristics)
{

@ -12,14 +12,13 @@ namespace ApiDePaul
{
public static SkinDto SkinToDto(this Skin s)
{
return new SkinDto()
{
Name = s.Name,
Price = s.Price,
Icon = s.Icon,
//Image = s.Image,
Description = s.Description
};
SkinDto ski = new SkinDto();
ski.Name = s.Name;
ski.Price = s.Price;
ski.Icon = s.Icon;
ski.Image = s.Image.ToString();
ski.Description = s.Description;
return ski;
}
//public static Skin DtoToSkin(this SkinDto s) => new Skin(s.Name);
}

@ -13,6 +13,5 @@ namespace ApiDePaul.DTO
public List<SkinDto> Skins { get; set; }
public List<Tuple<string,int>> Characteristics { get; set; }
public HashSet<Skill> Skills { get; set; }
public float valuer { get; set; } = 0;
}
}

Loading…
Cancel
Save