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.
31 lines
835 B
31 lines
835 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 SkinChanger
|
|
{
|
|
public static Skin toModel(this SkinEntity skinEntity)
|
|
{
|
|
return new Skin(skinEntity.Name, skinEntity.Description, skinEntity.Icon, skinEntity.Price /*championEntity.Image, championEntity.Class*/);
|
|
}
|
|
|
|
public static SkinEntity toEntity(this Skin skin)
|
|
{
|
|
return new SkinEntity
|
|
{
|
|
Name = skin.Name,
|
|
Description = skin.Description,
|
|
Icon = skin.Icon,
|
|
Price = skin.Price
|
|
//Image = champion.Image,
|
|
//Class = champion.Class,
|
|
};
|
|
}
|
|
}
|
|
}
|