Implemented centralised audit logging
This commit is contained in:
@@ -4,6 +4,37 @@ namespace PostFundManagement.Domain.Extensions;
|
||||
|
||||
public static class Mappers
|
||||
{
|
||||
public static TenantUser Map(this Entities.TenantUser entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Status = entity.Status,
|
||||
UserId = entity.UserId
|
||||
};
|
||||
|
||||
public static TenantOrganisation Map(this Entities.TenantOrganisation entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
Status = entity.Status,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
OrganisationId = entity.OrganisationId,
|
||||
TenantId = entity.TenantId
|
||||
};
|
||||
|
||||
public static Tenant Map(this Entities.Tenant entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
Name = entity.Name,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Status = entity.Status,
|
||||
UpdatedAt = entity.UpdatedAt,
|
||||
UpdatedBy = entity.UpdatedBy
|
||||
};
|
||||
|
||||
public static Activity Map(this Entities.Activity entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
@@ -40,6 +71,7 @@ public static class Mappers
|
||||
ApprovedBy = entity.ApprovedBy,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
TenantId = entity.TenantId,
|
||||
OrganisationId = entity.OrganisationId,
|
||||
ProgrammeId = entity.ProgrammeId,
|
||||
ProjectId = entity.ProjectId,
|
||||
@@ -162,7 +194,7 @@ public static class Mappers
|
||||
AwardId = entity.AwardId,
|
||||
ContractId = entity.ContractId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
InvitedOrganisationId = entity.InvitedOrganisationId,
|
||||
OrganisationId = entity.OrganisationId,
|
||||
Recipient = entity.Recipient,
|
||||
@@ -202,7 +234,7 @@ public static class Mappers
|
||||
public static Organisation Map(this Entities.Organisation entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Email = entity.Email,
|
||||
Name = entity.Name,
|
||||
@@ -225,6 +257,7 @@ public static class Mappers
|
||||
{
|
||||
Id = entity.Id,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
TenantId = entity.TenantId,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Description = entity.Description,
|
||||
Name = entity.Name,
|
||||
@@ -239,6 +272,7 @@ public static class Mappers
|
||||
Destination = entity.Destination,
|
||||
Error = entity.Error,
|
||||
Message = entity.Message,
|
||||
TenantId = entity.TenantId,
|
||||
OrganisationId = entity.OrganisationId,
|
||||
Platform = entity.Platform,
|
||||
Recipient = entity.Recipient,
|
||||
@@ -255,6 +289,7 @@ public static class Mappers
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Name = entity.Name,
|
||||
OwnedBy = entity.OwnedBy,
|
||||
TenantId = entity.TenantId,
|
||||
PortfolioId = entity.PortfolioId,
|
||||
Status = entity.Status,
|
||||
UpdatedAt = entity.UpdatedAt,
|
||||
@@ -269,6 +304,7 @@ public static class Mappers
|
||||
Description = entity.Description,
|
||||
EndedAt = entity.EndedAt,
|
||||
Name = entity.Name,
|
||||
TenantId = entity.TenantId,
|
||||
ProgrammeId = entity.ProgrammeId,
|
||||
StartedAt = entity.StartedAt,
|
||||
Status = entity.Status,
|
||||
|
||||
Reference in New Issue
Block a user