mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 13:40:13 +01:00
feat: return organisationId if user is an organization
this will help to determine if an event is created by the user or not
This commit is contained in:
@@ -16,5 +16,18 @@ namespace WebApp.Mapping
|
||||
user.IsOrganisation
|
||||
);
|
||||
}
|
||||
|
||||
public static UserSummaryWithOrgIdDto ToUserSummaryWithOrgIdDto(this User user, int OrganisationId)
|
||||
{
|
||||
return new UserSummaryWithOrgIdDto(
|
||||
user.UserId,
|
||||
user.Email,
|
||||
user.FirstName,
|
||||
user.LastName,
|
||||
user.CreatedAt,
|
||||
user.IsOrganisation,
|
||||
OrganisationId
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user