Added Invite, Notification and Activity
This commit is contained in:
@@ -4,6 +4,25 @@ namespace PostFundManagement.Domain.Extensions;
|
||||
|
||||
public static class Mappers
|
||||
{
|
||||
public static Activity Map(this Entities.Activity entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
Amount = entity.Amount,
|
||||
ApprovedBy = entity.ApprovedBy,
|
||||
Category = entity.Category,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Description = entity.Description,
|
||||
MilestoneId = entity.MilestoneId,
|
||||
PerformedAt = entity.PerformedAt,
|
||||
ProjectId = entity.ProjectId,
|
||||
Status = entity.Status,
|
||||
Title = entity.Title,
|
||||
UpdatedAt = entity.UpdatedAt,
|
||||
UpdatedBy = entity.UpdatedBy
|
||||
};
|
||||
|
||||
|
||||
public static AuditLog Map(this Entities.AuditLog entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
@@ -108,7 +127,9 @@ public static class Mappers
|
||||
Status = entity.Status,
|
||||
UpdatedAt = entity.UpdatedAt,
|
||||
UpdatedBy = entity.UpdatedBy,
|
||||
Version = entity.Version
|
||||
Version = entity.Version,
|
||||
ActivityId = entity.ActivityId,
|
||||
Type = entity.Type
|
||||
};
|
||||
|
||||
public static Indicator Map(this Entities.Indicator entity) => new()
|
||||
@@ -132,7 +153,22 @@ public static class Mappers
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Description = entity.Description,
|
||||
Name = entity.Name,
|
||||
Status = entity.Status
|
||||
Status = entity.Status,
|
||||
ProgrammeId = entity.ProgrammeId
|
||||
};
|
||||
|
||||
public static Invite Map(this Entities.Invite entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
AwardId = entity.AwardId,
|
||||
ContractId = entity.ContractId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
InvitedOrganisationId = entity.InvitedOrganisationId,
|
||||
OrganisationId = entity.OrganisationId,
|
||||
Recipient = entity.Recipient,
|
||||
UpdatedAt = entity.UpdatedAt,
|
||||
UpdatedBy = entity.UpdatedBy
|
||||
};
|
||||
|
||||
public static Issue Map(this Entities.Issue entity) => new()
|
||||
@@ -145,7 +181,9 @@ public static class Mappers
|
||||
ProjectId = entity.ProjectId,
|
||||
ResolvedAt = entity.ResolvedAt,
|
||||
Status = entity.Status,
|
||||
Title = entity.Title
|
||||
Title = entity.Title,
|
||||
AssignedTo = entity.AssignedTo,
|
||||
Resolution = entity.Resolution
|
||||
};
|
||||
|
||||
public static Milestone Map(this Entities.Milestone entity) => new()
|
||||
@@ -158,7 +196,8 @@ public static class Mappers
|
||||
ProjectId = entity.ProjectId,
|
||||
Status = entity.Status,
|
||||
UpdatedAt = entity.UpdatedAt,
|
||||
UpdatedBy = entity.UpdatedBy
|
||||
UpdatedBy = entity.UpdatedBy,
|
||||
Priority = entity.Priority
|
||||
};
|
||||
|
||||
public static Organisation Map(this Entities.Organisation entity) => new()
|
||||
@@ -193,12 +232,27 @@ public static class Mappers
|
||||
OwnedBy = entity.OwnedBy
|
||||
};
|
||||
|
||||
public static Notification Map(this Entities.Notification entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
Destination = entity.Destination,
|
||||
Error = entity.Error,
|
||||
Message = entity.Message,
|
||||
OrganisationId = entity.OrganisationId,
|
||||
Platform = entity.Platform,
|
||||
Recipient = entity.Recipient,
|
||||
SentAt = entity.SentAt,
|
||||
Status = entity.Status,
|
||||
Subject = entity.Subject,
|
||||
UpdatedAt = entity.UpdatedAt
|
||||
};
|
||||
|
||||
public static Programme Map(this Entities.Programme entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
InstrumentId = entity.InstrumentId,
|
||||
Name = entity.Name,
|
||||
OwnedBy = entity.OwnedBy,
|
||||
PortfolioId = entity.PortfolioId,
|
||||
@@ -219,7 +273,9 @@ public static class Mappers
|
||||
StartedAt = entity.StartedAt,
|
||||
Status = entity.Status,
|
||||
UpdatedAt = entity.UpdatedAt,
|
||||
UpdatedBy = entity.UpdatedBy
|
||||
UpdatedBy = entity.UpdatedBy,
|
||||
ProjectType = entity.ProjectType,
|
||||
Sector = entity.Sector
|
||||
};
|
||||
|
||||
public static Risk Map(this Entities.Risk entity) => new()
|
||||
|
||||
Reference in New Issue
Block a user