Merge branch 'EventRegistrationEndpoints'

This commit is contained in:
AleksDw
2025-06-01 14:20:46 +02:00
4 changed files with 164 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
);
}
}
}