SPMS_API/SPMS.Application/DependencyInjection.cs

20 lines
610 B
C#

using Microsoft.Extensions.DependencyInjection;
using SPMS.Application.Interfaces;
using SPMS.Application.Services;
namespace SPMS.Application;
public static class DependencyInjection
{
public static IServiceCollection AddApplication(this IServiceCollection services)
{
// Application Services
services.AddScoped<IAuthService, AuthService>();
services.AddScoped<IAccountService, AccountService>();
services.AddScoped<IServiceManagementService, ServiceManagementService>();
services.AddScoped<INoticeService, NoticeService>();
return services;
}
}