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.

35 lines
804 B

using DTO;
using Model;
namespace EntityFramwork.Factories
{
public class Factories
{
public EntityChampions ChampionModelToEntity(Champion champ)
{
EntityChampions entity = new EntityChampions();
entity.Name = champ.Name;
entity.Bio = champ.Bio;
entity.Icon = champ.Icon;
return entity;
}
public EntitySkins SkinsModelToEntity(Skin skin,int id)
{
EntitySkins entity= new EntitySkins();
entity.Price = skin.Price;
entity.Icon = skin.Icon;
entity.Description = skin.Description;
entity.ChampionForeignKey = id;
//entity.Champion = ChampionModelToEntity(skin.Champion);
return entity;
}
}
}