diff --git a/EnvelopeGenerator.Application/Contracts/Repositories/IEnvelopeCertificateRepository.cs b/EnvelopeGenerator.Application/Contracts/Repositories/IEnvelopeCertificateRepository.cs
deleted file mode 100644
index 10d5e42c..00000000
--- a/EnvelopeGenerator.Application/Contracts/Repositories/IEnvelopeCertificateRepository.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using DigitalData.Core.Abstraction.Application.Repository;
-using EnvelopeGenerator.Domain.Entities;
-
-namespace EnvelopeGenerator.Application.Contracts.Repositories;
-
-///
-///
-///
-[Obsolete("Use Read-method returning IReadQuery instead.")]
-public interface IEnvelopeCertificateRepository : ICRUDRepository
-{
-}
diff --git a/EnvelopeGenerator.Application/Contracts/Services/IEnvelopeCertificateService.cs b/EnvelopeGenerator.Application/Contracts/Services/IEnvelopeCertificateService.cs
deleted file mode 100644
index 24409a68..00000000
--- a/EnvelopeGenerator.Application/Contracts/Services/IEnvelopeCertificateService.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using DigitalData.Core.Abstraction.Application;
-using EnvelopeGenerator.Application.DTOs;
-using EnvelopeGenerator.Domain.Entities;
-
-namespace EnvelopeGenerator.Application.Contracts.Services;
-
-///
-///
-///
-[Obsolete("Use MediatR")]
-public interface IEnvelopeCertificateService : IBasicCRUDService
-{
-}
\ No newline at end of file
diff --git a/EnvelopeGenerator.Application/DTOs/EnvelopeCertificateDto.cs b/EnvelopeGenerator.Application/DTOs/EnvelopeCertificateDto.cs
deleted file mode 100644
index a1f11ccf..00000000
--- a/EnvelopeGenerator.Application/DTOs/EnvelopeCertificateDto.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-using Microsoft.AspNetCore.Mvc;
-
-namespace EnvelopeGenerator.Application.DTOs;
-
-///
-/// Data Transfer Object representing certificate information for an envelope.
-///
-[ApiExplorerSettings(IgnoreApi = true)]
-public class EnvelopeCertificateDto
-{
- ///
- /// Gets the unique identifier of the certificate.
- ///
- public int Id { get; init; }
-
- ///
- /// Gets the envelope ID associated with the certificate.
- ///
- public int EnvelopeId { get; init; }
-
- ///
- /// Gets the UUID of the envelope.
- ///
- public string EnvelopeUuid { get; init; } = string.Empty;
-
- ///
- /// Gets the subject of the envelope.
- ///
- public string EnvelopeSubject { get; init; } = string.Empty;
-
- ///
- /// Gets the ID of the creator of the envelope.
- ///
- public int CreatorId { get; init; }
-
- ///
- /// Gets the name of the creator.
- ///
- public string CreatorName { get; init; } = string.Empty;
-
- ///
- /// Gets the email address of the creator.
- ///
- public string CreatorEmail { get; init; } = string.Empty;
-
- ///
- /// Gets the current status of the envelope.
- ///
- public int EnvelopeStatus { get; init; }
-}
\ No newline at end of file
diff --git a/EnvelopeGenerator.Application/DTOs/MappingProfile.cs b/EnvelopeGenerator.Application/DTOs/MappingProfile.cs
index 6b31dc3d..af315596 100644
--- a/EnvelopeGenerator.Application/DTOs/MappingProfile.cs
+++ b/EnvelopeGenerator.Application/DTOs/MappingProfile.cs
@@ -27,7 +27,6 @@ public class MappingProfile : Profile
CreateMap();
CreateMap();
CreateMap();
- CreateMap();
CreateMap();
CreateMap();
CreateMap();
@@ -45,7 +44,6 @@ public class MappingProfile : Profile
CreateMap();
CreateMap();
CreateMap();
- CreateMap();
CreateMap();
CreateMap();
CreateMap();
diff --git a/EnvelopeGenerator.Application/DependencyInjection.cs b/EnvelopeGenerator.Application/DependencyInjection.cs
index 91f35865..f73e5e8c 100644
--- a/EnvelopeGenerator.Application/DependencyInjection.cs
+++ b/EnvelopeGenerator.Application/DependencyInjection.cs
@@ -33,7 +33,6 @@ public static class DependencyInjection
services.TryAddScoped();
services.TryAddScoped();
services.TryAddScoped();
- services.TryAddScoped();
services.TryAddScoped();
services.TryAddScoped();
services.TryAddScoped();
diff --git a/EnvelopeGenerator.Application/Services/EnvelopeCertificateService.cs b/EnvelopeGenerator.Application/Services/EnvelopeCertificateService.cs
deleted file mode 100644
index ded2f16c..00000000
--- a/EnvelopeGenerator.Application/Services/EnvelopeCertificateService.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using AutoMapper;
-using DigitalData.Core.Application;
-using EnvelopeGenerator.Application.DTOs;
-using EnvelopeGenerator.Domain.Entities;
-using EnvelopeGenerator.Application.Contracts.Repositories;
-using EnvelopeGenerator.Application.Contracts.Services;
-
-namespace EnvelopeGenerator.Application.Services;
-
-///
-///
-///
-[Obsolete("Use MediatR")]
-public class EnvelopeCertificateService : BasicCRUDService, IEnvelopeCertificateService
-{
- ///
- ///
- ///
- ///
- ///
- public EnvelopeCertificateService(IEnvelopeCertificateRepository repository, IMapper mapper)
- : base(repository, mapper)
- {
- }
-}
\ No newline at end of file
diff --git a/EnvelopeGenerator.Domain/Entities/EnvelopeCertificate.cs b/EnvelopeGenerator.Domain/Entities/EnvelopeCertificate.cs
deleted file mode 100644
index c8bd8c6e..00000000
--- a/EnvelopeGenerator.Domain/Entities/EnvelopeCertificate.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System.ComponentModel.DataAnnotations;
-using System.ComponentModel.DataAnnotations.Schema;
-
-namespace EnvelopeGenerator.Domain.Entities
-{
- [Table("TBSIG_ENVELOPE_CERTIFICATE", Schema = "dbo")]
- public class EnvelopeCertificate
- {
- [Key]
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
- [Column("GUID")]
- public int Id { get; set; }
-
- [Required]
- [Column("ENVELOPE_ID")]
- public int EnvelopeId { get; set; }
-
- [Required]
- [Column("ENVELOPE_UUID", TypeName = "nvarchar(36)")]
- public string EnvelopeUuid { get; set; }
-
- [Required]
- [Column("ENVELOPE_SUBJECT", TypeName = "nvarchar(512)")]
- public string EnvelopeSubject { get; set; }
-
- [Required]
- [Column("CREATOR_ID")]
- public int CreatorId { get; set; }
-
- [Required]
- [Column("CREATOR_NAME", TypeName = "nvarchar(128)")]
- public string CreatorName { get; set; }
-
- [Required]
- [Column("CREATOR_EMAIL", TypeName = "nvarchar(128)")]
- public string CreatorEmail { get; set; }
-
- [Required]
- [Column("ENVELOPE_STATUS")]
- public int EnvelopeStatus { get; set; }
- }
-}
\ No newline at end of file
diff --git a/EnvelopeGenerator.Infrastructure/DependencyExtensions.cs b/EnvelopeGenerator.Infrastructure/DependencyExtensions.cs
index 272400fa..7a33a5db 100644
--- a/EnvelopeGenerator.Infrastructure/DependencyExtensions.cs
+++ b/EnvelopeGenerator.Infrastructure/DependencyExtensions.cs
@@ -48,7 +48,6 @@ public static class DIExtensions
services.TryAddScoped();
services.TryAddScoped();
services.TryAddScoped();
- services.TryAddScoped();
services.TryAddScoped();
services.TryAddScoped();
services.TryAddScoped();
@@ -61,7 +60,6 @@ public static class DIExtensions
services.AddDbRepository(context => context.DocumentStatus).UseAutoMapper();
services.AddDbRepository(context => context.EmailTemplate).UseAutoMapper();
services.AddDbRepository(context => context.Envelopes).UseAutoMapper();
- services.AddDbRepository(context => context.EnvelopeCertificates).UseAutoMapper();
services.AddDbRepository(context => context.EnvelopeHistories).UseAutoMapper();
services.AddDbRepository(context => context.EnvelopeReceivers).UseAutoMapper();
services.AddDbRepository(context => context.EnvelopeTypes).UseAutoMapper();
diff --git a/EnvelopeGenerator.Infrastructure/EGDbContext.cs b/EnvelopeGenerator.Infrastructure/EGDbContext.cs
index a8de52c2..ebdde7fe 100644
--- a/EnvelopeGenerator.Infrastructure/EGDbContext.cs
+++ b/EnvelopeGenerator.Infrastructure/EGDbContext.cs
@@ -29,8 +29,6 @@ public class EGDbContext : DbContext, IUserManagerDbContext, IMailDbContext
public DbSet EmailTemplate { get; set; }
- public DbSet EnvelopeCertificates { get; set; }
-
public DbSet EnvelopeDocument { get; set; }
public DbSet EnvelopeHistories { get; set; }
@@ -73,7 +71,6 @@ public class EGDbContext : DbContext, IUserManagerDbContext, IMailDbContext
Envelopes = Set();
DocumentReceiverElements = Set();
DocumentStatus = Set();
- EnvelopeCertificates = Set();
EnvelopeDocument = Set();
EnvelopeHistories = Set();
EnvelopeTypes = Set();
@@ -101,7 +98,6 @@ public class EGDbContext : DbContext, IUserManagerDbContext, IMailDbContext
modelBuilder.Entity();
modelBuilder.Entity();
modelBuilder.Entity();
- modelBuilder.Entity();
modelBuilder.Entity();
modelBuilder.Entity();
modelBuilder.Entity();
@@ -165,7 +161,6 @@ public class EGDbContext : DbContext, IUserManagerDbContext, IMailDbContext
AddTrigger();
AddTrigger();
AddTrigger();
- AddTrigger();
AddTrigger();
AddTrigger();
AddTrigger();
diff --git a/EnvelopeGenerator.Infrastructure/Repositories/EnvelopeCertificateRepository.cs b/EnvelopeGenerator.Infrastructure/Repositories/EnvelopeCertificateRepository.cs
deleted file mode 100644
index 0969d86e..00000000
--- a/EnvelopeGenerator.Infrastructure/Repositories/EnvelopeCertificateRepository.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using DigitalData.Core.Infrastructure;
-using EnvelopeGenerator.Domain.Entities;
-using EnvelopeGenerator.Application.Contracts.Repositories;
-
-namespace EnvelopeGenerator.Infrastructure.Repositories;
-
-[Obsolete("Use IRepository")]
-public class EnvelopeCertificateRepository : CRUDRepository, IEnvelopeCertificateRepository
-{
- public EnvelopeCertificateRepository(EGDbContext dbContext) : base(dbContext, dbContext.EnvelopeCertificates)
- {
- }
-}
\ No newline at end of file
diff --git a/EnvelopeGenerator.Web/Controllers/Test/TestEnvelopeCertificateController.cs b/EnvelopeGenerator.Web/Controllers/Test/TestEnvelopeCertificateController.cs
deleted file mode 100644
index acf0a89f..00000000
--- a/EnvelopeGenerator.Web/Controllers/Test/TestEnvelopeCertificateController.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using EnvelopeGenerator.Application.Contracts.Services;
-using EnvelopeGenerator.Application.DTOs;
-using EnvelopeGenerator.Domain.Entities;
-
-namespace EnvelopeGenerator.Web.Controllers.Test;
-
-[Obsolete("Use MediatR")]
-public class TestEnvelopeCertificateController : TestControllerBase
-{
- public TestEnvelopeCertificateController(ILogger logger, IEnvelopeCertificateService service) : base(logger, service)
- {
-
- }
-}
\ No newline at end of file