SPMS_API/SPMS.Application/DependencyInjection.cs
2026-02-10 13:41:19 +09:00

21 lines
671 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>();
services.AddScoped<IBannerService, BannerService>();
return services;
}
}