mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30:13 +01:00
21 lines
455 B
C#
21 lines
455 B
C#
using WebApp.DTOs;
|
|
using WebApp.Entities;
|
|
|
|
namespace WebApp.Mapping
|
|
{
|
|
public static class UserMapping
|
|
{
|
|
public static UserSummaryDto ToUserSummaryDto(this User user)
|
|
{
|
|
return new UserSummaryDto(
|
|
user.UserId,
|
|
user.Email,
|
|
user.FirstName,
|
|
user.LastName,
|
|
user.CreatedAt,
|
|
user.IsOrganisation
|
|
);
|
|
}
|
|
}
|
|
}
|