Skip to content
Snippets Groups Projects
DependencyInjection.cs 441 B
Newer Older
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;

namespace SocialNetwork.Social.Application;

public static class DependencyInjection
{
    public static IServiceCollection AddApplicationServices(this IServiceCollection services)
    {
        services.AddAutoMapper(Assembly.GetExecutingAssembly());

        services.AddValidatorsFromAssembly(Assembly.GetExecutingAssembly());

        return services;
    }
}