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.
19 lines
377 B
19 lines
377 B
using DTO;
|
|
using Model;
|
|
|
|
namespace Api_lol.Factories
|
|
{
|
|
public static class FactoSkins
|
|
{
|
|
public static DtoSkins ModelToDto(this Skin skin)
|
|
{
|
|
return new DtoSkins(skin.Name);
|
|
}
|
|
|
|
public static Skin DtoToModel(this DtoSkins skinDto,Champion champ)
|
|
{
|
|
return new Skin(skinDto.name, champ);
|
|
}
|
|
}
|
|
}
|