16 lines
487 B
C#
16 lines
487 B
C#
using Apimanager_backend.Services;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Apimanager_backend.Config
|
|
{
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
public static IServiceCollection AddAllService(this IServiceCollection services,IConfiguration configuration)
|
|
{
|
|
services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
|
|
services.AddScoped<IUserService, UserService>();
|
|
return services;
|
|
}
|
|
}
|
|
}
|