forked from ddrilling/AsbCloudServer
18 lines
511 B
C#
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;
|
|
}
|
|
}
|
|
} |