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.

30 lines
817 B

using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EntityFrameworkLib.Mappers
{
public static class ChampionChanger
{
public static Champion toModel(this ChampionEntity championEntity)
{
return new Champion(championEntity.Name, championEntity.Bio, championEntity.Icon /*championEntity.Image, championEntity.Class*/);
}
public static ChampionEntity toEntity(this Champion champion)
{
return new ChampionEntity
{
Name = champion.Name,
Bio = champion.Bio,
Icon = champion.Icon,
//Image = champion.Image,
//Class = champion.Class,
};
}
}
}