переход на fluentValidation

This commit is contained in:
gorbenko.pavel
2026-07-23 16:58:18 +05:00
parent 7cce18e67b
commit 253fafa575
14 changed files with 150 additions and 64 deletions
@@ -1,3 +1,5 @@
using System.Reflection;
using FluentValidation;
using Microsoft.Extensions.DependencyInjection;
using Tnsu.ApprovalRoute.Application.RequestTypes;
using Tnsu.ApprovalRoute.Application.TemplateRoutes;
@@ -13,6 +15,8 @@ public static class ApplicationServiceCollectionExtensions
services.AddScoped<TemplateRouteService>();
services.AddScoped<TemplateRouteStepService>();
services.AddValidatorsFromAssembly(Assembly.GetExecutingAssembly());
return services;
}
}