- 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.
13 lines
221 B
C#
13 lines
221 B
C#
namespace EnvelopeGenerator.Application.Exceptions;
|
|
|
|
public class NotFoundException : Exception
|
|
{
|
|
public NotFoundException()
|
|
{
|
|
}
|
|
|
|
public NotFoundException(string? message) : base(message)
|
|
{
|
|
}
|
|
}
|