fix code for leave service

This commit is contained in:
Suphonchai Phoonsawat 2023-11-16 13:17:54 +07:00
parent cc14ec28b0
commit 5cd20a0b47
8 changed files with 16 additions and 28 deletions

View file

@ -35,6 +35,14 @@ namespace BMA.EHR.Application
services.AddTransient<CandidateReportRepository>();
services.AddTransient<MinIOExamService>();
//services.AddTransient<DutyTimeRepository>();
//services.AddTransient<UserTimeStampRepository>();
return services;
}
public static IServiceCollection AddLeaveApplication(this IServiceCollection services)
{
services.AddTransient<DutyTimeRepository>();
services.AddTransient<UserTimeStampRepository>();

View file

@ -1,5 +1,4 @@
using BMA.EHR.Domain.Models.MetaData;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Application.Common.Interfaces
{

View file

@ -1,5 +1,4 @@
using BMA.EHR.Domain.Models.MetaData;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Application.Common.Interfaces
{

View file

@ -1,18 +1,10 @@
using System.Reflection.Metadata;
using System.Text;
using BMA.EHR.Application.Common.Interfaces;
using BMA.EHR.Application.Responses;
using BMA.EHR.Application.Common.Interfaces;
using BMA.EHR.Domain.Extensions;
using BMA.EHR.Domain.Models.HR;
using BMA.EHR.Domain.Models.Organizations;
using BMA.EHR.Domain.Models.Retirement;
using BMA.EHR.Domain.ModelsExam.Candidate;
using BMA.EHR.Domain.Shared;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using System.Text;
using static BMA.EHR.Domain.Extensions.DateTimeExtension;
namespace BMA.EHR.Application.Repositories.Reports

View file

@ -1,18 +1,9 @@
using System;
using System.Reflection.Metadata;
using System.Text.RegularExpressions;
using BMA.EHR.Application.Common.Interfaces;
using BMA.EHR.Application.Responses;
using BMA.EHR.Application.Common.Interfaces;
using BMA.EHR.Domain.Extensions;
using BMA.EHR.Domain.Models.HR;
using BMA.EHR.Domain.Models.MetaData;
using BMA.EHR.Domain.Models.Organizations;
using BMA.EHR.Domain.Models.Placement;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
namespace BMA.EHR.Application.Repositories.Reports
{