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.
EfCore_LoL_S4/WebApiLol/Converter/SkinConverter.cs

19 lines
372 B

using System;
using Model;
namespace WebApiLol.Converter
{
public static class SkinConverter
{
public static SkinDTO toDTO(this Skin skin) => new SkinDTO()
{
Name = skin.Name,
Description = skin.Description,
};
public static Skin toModel(this SkinDTO skin) => new Skin(skin.Name, skin.Description);
}
}