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.

21 lines
447 B

using DTO;
using Model;
namespace EntityFramwork.Factories
{
public class Factories
{
public EntityChampions ModelToEntity(Champion champ)
{
EntityChampions entity = new EntityChampions();
entity.Name = champ.Name;
entity.Bio = champ.Bio;
entity.Icon = champ.Icon;
//entity.Skins = new List<Skin>(champ.Skins);
return entity;
}
}
}