diff --git a/EnvelopeGenerator.Application/Annotations/MappingProfile.cs b/EnvelopeGenerator.Application/Annotations/MappingProfile.cs new file mode 100644 index 00000000..f608b824 --- /dev/null +++ b/EnvelopeGenerator.Application/Annotations/MappingProfile.cs @@ -0,0 +1,20 @@ +using AutoMapper; +using EnvelopeGenerator.Application.Annotations.Commands; +using EnvelopeGenerator.Domain.Entities; + +namespace EnvelopeGenerator.Application.Annotations; + +/// +/// +/// +public class MappingProfile : Profile +{ + /// + /// + /// + public MappingProfile() + { + CreateMap() + .ForMember(dest => dest.AddedWhen, opt => opt.MapFrom(_ => DateTime.UtcNow)); + } +} \ No newline at end of file diff --git a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/DocSignedNotification.cs b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/DocSignedNotification.cs index 86e7681d..8da5d61f 100644 --- a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/DocSignedNotification.cs +++ b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/DocSignedNotification.cs @@ -2,7 +2,6 @@ using EnvelopeGenerator.Application.Common.Extensions; using EnvelopeGenerator.Domain.Constants; using MediatR; -using Newtonsoft.Json; using System.Dynamic; namespace EnvelopeGenerator.Application.Common.Notifications.DocSigned;