Refactor email template commands and add controller

- Updated `UpdateEmailTemplateCommand` to use a property for `EmailTemplateQuery` with `JsonIgnore`, allowing optional body and subject parameters.
- Simplified `UpdateToDefaultCommand` by removing documentation comments and constructor parameters.
- Corrected namespace for `ReadEmailTemplateQuery` from `Query.Read` to `Queries.Read`.
- Introduced `ResetEnvelopeTemplateCommand` with optional ID and type, inheriting from `EmailTemplateQuery`, along with detailed XML documentation.
- Added `EmailTemplateController` to manage email templates, including methods for retrieval and updates, utilizing AutoMapper and authorization attributes.
This commit is contained in:
Developer 02
2025-04-12 01:20:04 +02:00
parent f17820e011
commit fe252b9979
4 changed files with 105 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
namespace EnvelopeGenerator.Application.EmailTemplates.Query.Read;
namespace EnvelopeGenerator.Application.EmailTemplates.Queries.Read;
/// <summary>