Files
hrynco-notification-service/HrynCo.NotificationService.Services/TemplateDefinitions/NotificationServiceMapping.cs
T
agrynco 8e81572386 feat(notification): add admin rest management and deletion
Add revision-safe service and template APIs, channel mapping, and validated admin controls.

Ref: IT-1601
2026-10-17 22:51:01 +03:00

11 lines
471 B
C#

using HrynCo.NotificationService.DAL.Abstract.Templates;
namespace HrynCo.NotificationService.Services.TemplateDefinitions;
internal static class NotificationServiceMapping
{
public static NotificationServiceDto Map(NotificationServiceInfo service) =>
new(service.Id, service.Name, service.Revision, service.Languages.Select(l => l.Code).ToList(),
service.Languages.Select(l => new ServiceLanguageDto(l.Id, l.Code, l.VersionCount)).ToList());
}