mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30:13 +01:00
Join, leave, registrations endpoints
todo: remove smb from event endpoint
This commit is contained in:
17
WebApp/Mapping/EventRegistrationMapping.cs
Normal file
17
WebApp/Mapping/EventRegistrationMapping.cs
Normal 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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user