81654c0d33
Add normalized service and template catalogs, scoped administration, migration, validation, and regression coverage. Ref: IT-1601
15 lines
486 B
C#
15 lines
486 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using HrynCo.NotificationService.DAL.Abstract.Templates;
|
|
|
|
namespace HrynCo.NotificationService.Web.Controllers.Admin.ViewModels;
|
|
|
|
public sealed class NotificationServiceEditViewModel
|
|
{
|
|
public Guid? Id { get; set; }
|
|
public Guid Revision { get; set; }
|
|
[Required, StringLength(100)]
|
|
public string Name { get; set; } = "";
|
|
public List<ServiceLanguageInfo> Languages { get; set; } = [];
|
|
public bool IsNew => Id is null;
|
|
}
|