feat: enable adding relevant skills to events

This commit is contained in:
2025-06-01 03:13:53 +02:00
parent 72fbfe982f
commit 426288d728
5 changed files with 121 additions and 18 deletions

View File

@@ -0,0 +1,16 @@
using WebApp.DTOs;
using WebApp.Entities;
namespace WebApp.Mapping;
public static class EventSkillMapping
{
public static EventSkill ToEventSkillEntity(this SingleSkillDto SSDto, int eid)
{
return new EventSkill()
{
EventId = eid,
SkillId = SSDto.Skill,
};
}
}