using System.ComponentModel.DataAnnotations; namespace HrynCo.NotificationService.Web.Controllers.Admin.ViewModels; public sealed class EmailTemplateEditViewModel { public Guid? Id { get; set; } public Guid ServiceId { get; set; } public Guid Revision { get; set; } [Required, StringLength(100)] public string ServiceName { get; set; } = ""; [Required, StringLength(100)] public string Key { get; set; } = ""; [Required] public string VariablesJson { get; set; } = "[]"; public List Languages { get; set; } = []; public int ActiveLanguageIndex { get; set; } public string? KeyFilter { get; set; } public bool IsNew => Id == null; public string PageTitle => IsNew ? "Create Email Template" : "Edit Email Template"; }