Exemplo n.º 1
0
 internal static IncentiveApplicationStatusAudit Map(this IncentiveApplicationAudit entity)
 {
     return(new IncentiveApplicationStatusAudit
     {
         Id = entity.Id,
         IncentiveApplicationApprenticeshipId = entity.IncentiveApplicationApprenticeshipId,
         Process = entity.Process,
         ServiceRequestTaskId = entity.ServiceRequest.TaskId,
         ServiceRequestDecisionReference = entity.ServiceRequest.DecisionReference,
         ServiceRequestCreatedDate = entity.ServiceRequest.Created,
         CreatedDateTime = DateTime.Now
     });
 }
 public async Task Add(IncentiveApplicationAudit incentiveApplicationAudit)
 {
     await _dbContext.AddAsync(incentiveApplicationAudit.Map());
 }