mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 13:40:13 +01:00
26 lines
549 B
C#
26 lines
549 B
C#
using WebApp.DTOs;
|
|
using WebApp.Entities;
|
|
|
|
namespace WebApp.Mapping
|
|
{
|
|
public static class SkillMapping
|
|
{
|
|
public static Skill ToSkillEntity(this SingleSkillDto SSDto, string name)
|
|
{
|
|
return new Skill()
|
|
{
|
|
SkillId = SSDto.Skill,
|
|
Name = name
|
|
};
|
|
}
|
|
|
|
public static SkillSummaryDto ToSkillSummaryDto(this Skill s)
|
|
{
|
|
return new SkillSummaryDto(
|
|
s.SkillId,
|
|
s.Name
|
|
);
|
|
}
|
|
}
|
|
}
|