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.

27 lines
509 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
namespace EFLol.DBDataManager
{
public static class DataConverter
{
public static Champion ChampionToPoco(this ChampionEntity champion)
{
return new Champion(champion.Name, champion.Bio);
}
public static ChampionEntity ChampionToEntity(this Champion champion)
{
return new ChampionEntity
{
Name = champion.Name,
Bio = champion.Bio
};
}
}
}