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/ChampionConverter.cs

17 lines
404 B

using System;
using Model;
namespace WebApiLol.Converter
{
public static class ChampionConverter
{
public static ChampionDTO toDTO(this Champion champion) => new ChampionDTO()
{
Name = champion.Name,
Bio = champion.Bio,
};
public static Champion toModel(this ChampionDTO champion) => new Champion(champion.Name, champion.Bio);
}
}