17 lines
458 B
C#
17 lines
458 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Nocr.Users.AppServices.Users.Services;
|
|
|
|
namespace Nocr.Users.AppServices;
|
|
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
public static IServiceCollection AddAppServices(this IServiceCollection services)
|
|
{
|
|
if (services == null)
|
|
throw new ArgumentNullException(nameof(services));
|
|
|
|
services.AddScoped<IUsersService, UsersService>();
|
|
|
|
return services;
|
|
}
|
|
} |