Join, leave, registrations endpoints

todo: remove smb from event endpoint
This commit is contained in:
AleksDw
2025-05-31 02:19:01 +02:00
parent 740f8a955d
commit f2ccde2ea6
4 changed files with 139 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using WebApp.DTOs;
using WebApp.Entities;
namespace WebApp.Mapping
{
public static class EventRegistrationMapping
{
public static EventRegistrationDto ToEventRegistrationDto(this EventRegistration er)
{
return new EventRegistrationDto(
er.EventId,
er.UserId,
er.RegisteredAt
);
}
}
}