Files
PowderCoatingLogix/src/PowderCoating.Application/DTOs/Notification/NotificationTemplateDtos.cs
T
2026-04-23 21:38:24 -04:00

24 lines
788 B
C#

using PowderCoating.Core.Enums;
using System.ComponentModel.DataAnnotations;
namespace PowderCoating.Application.DTOs.Notification;
public class NotificationTemplateDto
{
public int Id { get; set; }
public NotificationType NotificationType { get; set; }
public NotificationChannel Channel { get; set; }
public string DisplayName { get; set; } = string.Empty;
public string? Subject { get; set; }
public string Body { get; set; } = string.Empty;
public bool IsEmail => Channel == NotificationChannel.Email;
public DateTime? UpdatedAt { get; set; }
}
public class UpdateNotificationTemplateDto
{
public int Id { get; set; }
[StringLength(300)] public string? Subject { get; set; }
[Required] public string Body { get; set; } = string.Empty;
}