hrms-api-backend/BMA.EHR.Application/ApplicationServicesRegistration.cs
Suphonchai Phoonsawat 19c30e69df
Some checks failed
release-dev / release-dev (push) Failing after 11s
CRUD Leave Beginning
2025-04-23 11:25:12 +07:00

73 lines
3.2 KiB
C#

using BMA.EHR.Application.Messaging;
using BMA.EHR.Application.Repositories;
using BMA.EHR.Application.Repositories.Commands;
using BMA.EHR.Application.Repositories.Leaves.LeaveRequests;
using BMA.EHR.Application.Repositories.Leaves.TimeAttendants;
using BMA.EHR.Application.Repositories.MessageQueue;
using BMA.EHR.Application.Repositories.MetaData;
using BMA.EHR.Application.Repositories.Reports;
using Microsoft.Extensions.DependencyInjection;
namespace BMA.EHR.Application
{
public static class ApplicationServicesRegistration
{
public static IServiceCollection AddApplication(this IServiceCollection services)
{
services.AddTransient<PrefixRepository>();
services.AddTransient<PlacementRepository>();
services.AddTransient<OrganizationEmployeeRepository>();
services.AddTransient<MessageQueueRepository>();
services.AddTransient<CommandRepository>();
services.AddTransient<CommandTypeRepository>();
services.AddTransient<CommandStatusRepository>();
services.AddTransient<InsigniaPeriodsRepository>();
services.AddTransient<RetirementRepository>();
services.AddTransient<UserProfileRepository>();
services.AddTransient<OrganizationCommonRepository>();
services.AddTransient<InboxRepository>();
services.AddTransient<NotificationRepository>();
//services.AddTransient<RetirementRepository>();
services.AddTransient<RetireReportRepository>();
services.AddTransient<InsigniaReportRepository>();
services.AddTransient<CommandReportRepository>();
services.AddTransient<ProbationReportRepository>();
services.AddTransient<TransferReportRepository>();
services.AddTransient<EmailSenderService>();
services.AddTransient<CandidateReportRepository>();
services.AddTransient<MinIOExamService>();
services.AddTransient<PermissionRepository>();
services.AddTransient<HolidayRepository>();
//services.AddTransient<UserDutyTimeRepository>();
return services;
}
public static IServiceCollection AddLeaveApplication(this IServiceCollection services)
{
services.AddTransient<DutyTimeRepository>();
services.AddTransient<UserTimeStampRepository>();
services.AddTransient<ProcessUserTimeStampRepository>();
services.AddTransient<UserDutyTimeRepository>();
services.AddTransient<AdditionalCheckRequestRepository>();
services.AddTransient<UserCalendarRepository>();
services.AddTransient<LeaveTypeRepository>();
services.AddTransient<LeaveRequestRepository>();
services.AddTransient<LeaveBeginningRepository>();
services.AddTransient<MinIOLeaveService>();
return services;
}
public static IServiceCollection AddDisciplineApplication(this IServiceCollection services)
{
services.AddTransient<MinIODisciplineService>();
services.AddTransient<NotificationRepository>();
return services;
}
}
}