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.
24 lines
515 B
24 lines
515 B
using DTO;
|
|
using Model;
|
|
|
|
namespace APILOL.Mapper
|
|
{
|
|
public static class SkillMapper
|
|
{
|
|
public static SkillDTO ToDto(this Skill skill)
|
|
{
|
|
return new SkillDTO()
|
|
{
|
|
Type = skill.Type,
|
|
Name = skill.Name,
|
|
Description = skill.Description
|
|
};
|
|
}
|
|
|
|
public static Skill ToModel(this SkillDTO skill)
|
|
{
|
|
return new Skill(skill.Name, skill.Type, skill.Description);
|
|
}
|
|
}
|
|
}
|