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

18 lines
385 B

using System;
using Model;
namespace WebApiLol.Converter
{
public static class SkillsConverter
{
public static SkillDTO toDTO(this Skill skill) => new SkillDTO()
{
Name = skill.Name,
Description = skill.Description,
};
public static Skill toModel(this SkillDTO skill) => new Skill(skill.Name, skill.Description);
}
}