using DTO; using Model; using System.Runtime.CompilerServices; namespace Api_lol.Factories { public static class FactoChampions { public static Champion DtoToModel(this DtoChampions champDto) { return new Champion(champDto.name); } public static DtoChampions ModelToDto(this Champion champ) { return new DtoChampions(champ.Name); } } }