version 2

This commit is contained in:
2025-12-16 16:52:40 +03:30
parent 61e86b1e96
commit 139924db94
52 changed files with 7350 additions and 321 deletions

View File

@@ -21,6 +21,16 @@ public sealed class MappingProfile : Profile
.ReverseMap()
.ForMember(dest => dest.Device, opt => opt.Ignore());
CreateMap<Domain.AlertCondition, AlertConditionDto>()
.ForMember(dest => dest.DeviceName, opt => opt.MapFrom(src => src.Device.DeviceName))
.ReverseMap()
.ForMember(dest => dest.Device, opt => opt.Ignore());
CreateMap<Domain.AlertRule, AlertRuleDto>().ReverseMap()
.ForMember(dest => dest.AlertCondition, opt => opt.Ignore());
CreateMap<CreateAlertRuleRequest, Domain.AlertRule>();
CreateMap<Domain.User, UserDto>().ReverseMap();
}
}