15 lines
359 B
C#
15 lines
359 B
C#
using FluentValidation;
|
|
using System.Reflection;
|
|
|
|
namespace Microsoft.Extensions.DependencyInjection;
|
|
|
|
public static class ConfigureServices
|
|
{
|
|
public static IServiceCollection AddProductsProtobufServices(this IServiceCollection services)
|
|
{
|
|
services.AddValidatorsFromAssembly(Assembly.GetExecutingAssembly());
|
|
return services;
|
|
}
|
|
}
|
|
|