Dependencyinjection.cs 492 B

1234567891011121314151617
  1. using Microsoft.Extensions.DependencyInjection;
  2. using FluentValidation;
  3. using System.Reflection;
  4. namespace AipGateway.API.Domain
  5. {
  6. public static class Dependencyinjection
  7. {
  8. public static IServiceCollection AddDomainLayerServices(this IServiceCollection services)
  9. {
  10. services//.AddAutoMapper(Assembly.GetExecutingAssembly())
  11. .AddValidatorsFromAssembly(Assembly.GetExecutingAssembly());
  12. return services;
  13. }
  14. }
  15. }