mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 21:50:12 +01:00
26 lines
571 B
C#
26 lines
571 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 {
|
|
SkillId = s.SkillId,
|
|
SkillName = s.Name
|
|
};
|
|
}
|
|
}
|
|
}
|