mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30:13 +01:00
18 lines
396 B
C#
18 lines
396 B
C#
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
|
|
);
|
|
}
|
|
}
|
|
}
|