SPMS_API/SPMS.Application/DependencyInjection.cs

25 lines
911 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>();
services.AddScoped<IFaqService, FaqService>();
services.AddScoped<IAppConfigService, AppConfigService>();
services.AddScoped<IDeviceService, DeviceService>();
services.AddScoped<IFileService, FileService>();
return services;
}
}