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

@@ -1,17 +1,16 @@
using WebApp.DTOs;
using WebApp.DTOs;
using WebApp.Entities;
namespace WebApp.Mapping
namespace WebApp.Mapping;
public static class VolunteerSkillMapping
{
public static class VolunteerSkillMapping
public static VolunteerSkill ToVolunteerSkillEntity(this SingleSkillDto SSDto, int uid)
{
public static VolunteerSkill ToVolunteerSkillEntity(this SingleSkillDto SSDto, int uid)
return new VolunteerSkill()
{
return new VolunteerSkill()
{
UserId = uid,
SkillId = SSDto.Skill,
};
}
UserId = uid,
SkillId = SSDto.Skill,
};
}
}