DD.WellWorkover.Cloud/AsbCloudInfrastructure/Validators/DependencyInjection.cs
Харченко Владимир 9792fe2196 CS2-125: Added base dto validation
2022-01-12 17:28:27 +05:00

18 lines
511 B
C#

using AsbCloudApp.Data;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using FluentValidation;
namespace AsbCloudInfrastructure.Validators
{
public static class DependencyInjection
{
public static IServiceCollection AddValidators(this IServiceCollection services,
IConfiguration configuration)
{
services.AddTransient<IValidator<AuthDto>, AuthDtoValidator>();
return services;
}
}
}