Refactor email template handling and error management

- Updated EmailTemplateDto to allow mutable Body and Subject properties.
- Implemented IRequest interface in UpdateEmailTemplateCommand for MediatR.
- Enhanced error handling in EmailTemplateController with NotFoundException.
- Introduced UpdateEmailTemplateCommandHandler for processing update commands.
- Added NotFoundException class for improved error handling.
This commit is contained in:
Developer 02
2025-05-07 01:02:30 +02:00
parent e4eb3e1192
commit 613b2130a5
5 changed files with 68 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
namespace EnvelopeGenerator.Application.Exceptions;
public class NotFoundException : Exception
{
public NotFoundException()
{
}
public NotFoundException(string? message) : base(message)
{
}
}