diff --git a/HRM.UI/Controllers/Ess-Fund/EssFundController.cs b/HRM.UI/Controllers/Ess-Fund/EssFundController.cs index 048778a..e1e9123 100644 --- a/HRM.UI/Controllers/Ess-Fund/EssFundController.cs +++ b/HRM.UI/Controllers/Ess-Fund/EssFundController.cs @@ -1,18 +1,19 @@ -using HRM.BO; +using Ease.Core.DataAccess; +using HRM.BO; using HRM.BO.Configuration; +using HRM.DA; +using HRM.DA.Fund; +using HRM.Report; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Options; -using System; -using System.Data; -using System.Collections.Generic; -using Ease.Core.DataAccess; -using Microsoft.VisualBasic; -using HRM.DA; -using HRM.Report; using Microsoft.Reporting.NETCore; -using HRM.DA.Fund; +using Microsoft.VisualBasic; +using System; +using System.Collections.Generic; +using System.Data; using System.Linq; @@ -20,7 +21,8 @@ namespace Fund.UI.Controllers.Ess_Fund { [Route("api/EssFund")] [ApiController] - public class EssFundController : ControllerBase + [Authorize] + public class EssFundController : ControllerBase { private readonly IDepartmentService _departmentService; private readonly IDesignationService _designationService; diff --git a/HRM.UI/Controllers/Leave/LeaveController.cs b/HRM.UI/Controllers/Leave/LeaveController.cs index 7004e5a..bc1d0d1 100644 --- a/HRM.UI/Controllers/Leave/LeaveController.cs +++ b/HRM.UI/Controllers/Leave/LeaveController.cs @@ -30,7 +30,8 @@ namespace HRM.UI.Controllers.Leave { [Route("api/Leave")] [ApiController] - public class LeaveController : ControllerBase + [Authorize] + public class LeaveController : ControllerBase { private readonly IEmployeeShortLeaveService _employeeShortLeaveService; private readonly ILeaveService _leaveService; diff --git a/HRM.UI/Controllers/Payroll/ExitClearanceController.cs b/HRM.UI/Controllers/Payroll/ExitClearanceController.cs index 43ec7e9..65d32bb 100644 --- a/HRM.UI/Controllers/Payroll/ExitClearanceController.cs +++ b/HRM.UI/Controllers/Payroll/ExitClearanceController.cs @@ -1,22 +1,24 @@ -using Microsoft.AspNetCore.Http; +using Ease.Core.DataAccess; +using HRM.BO; +using HRM.DA; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.StaticFiles; +using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; +using System.Globalization; +using System.IO; using System.Linq; using System.Threading.Tasks; -using HRM.BO; -using System.Globalization; -using HRM.DA; -using System.IO; -using Microsoft.AspNetCore.StaticFiles; -using Ease.Core.DataAccess; -using Microsoft.Extensions.Configuration; namespace HRM.UI.Controllers.Payroll { [Route("api/ExitClearance")] [ApiController] - public class ExitClearanceController : ControllerBase + [Authorize] + public class ExitClearanceController : ControllerBase { private readonly IAssetService _assetService; private readonly IVendorService _vendorService; diff --git a/HRM.UI/Controllers/Payroll/JvController.cs b/HRM.UI/Controllers/Payroll/JvController.cs index c5eee2c..6c07ec2 100644 --- a/HRM.UI/Controllers/Payroll/JvController.cs +++ b/HRM.UI/Controllers/Payroll/JvController.cs @@ -1,18 +1,20 @@ -using Microsoft.AspNetCore.Http; +using HRM.BO; +using HRM.DA; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; +using System.Data; using System.Linq; using System.Threading.Tasks; -using HRM.BO; -using System.Data; -using HRM.DA; namespace HRM.UI.Controllers.Payroll { [Route("api/jv")] [ApiController] - public class JvController : ControllerBase + [Authorize] + public class JvController : ControllerBase { private readonly IJVSetupService _jvSetupService; private readonly IJVSetupCCService _jvSetupCcService; diff --git a/HRM.UI/Controllers/Payroll/OpiController.cs b/HRM.UI/Controllers/Payroll/OpiController.cs index eab5e45..ecb1b73 100644 --- a/HRM.UI/Controllers/Payroll/OpiController.cs +++ b/HRM.UI/Controllers/Payroll/OpiController.cs @@ -1,17 +1,19 @@ -using Microsoft.AspNetCore.Http; +using HRM.BO; +using HRM.DA; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using HRM.BO; -using HRM.DA; namespace HRM.UI.Controllers.Payroll { [Route("api/opi")] [ApiController] - public class OpiController : ControllerBase + [Authorize] + public class OpiController : ControllerBase { private readonly IOpiParameterService _opiParameterService; private readonly IOpiParameterIndividualService _opiParameterIndividualService; diff --git a/HRM.UI/Controllers/Payroll/OverTimeController.cs b/HRM.UI/Controllers/Payroll/OverTimeController.cs index dcbc279..b93be00 100644 --- a/HRM.UI/Controllers/Payroll/OverTimeController.cs +++ b/HRM.UI/Controllers/Payroll/OverTimeController.cs @@ -1,17 +1,19 @@ -using Microsoft.AspNetCore.Http; +using HRM.BO; +using HRM.DA; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using HRM.BO; -using HRM.DA; namespace HRM.UI.Controllers.Payroll { [Route("api/Overtime")] [ApiController] - public class OverTimeController : ControllerBase + [Authorize] + public class OverTimeController : ControllerBase { private readonly ITermParameterService _termParameterService; private readonly IEmployeeOverTimeService _employeeOverTimeService; diff --git a/HRM.UI/Controllers/Payroll/SettlementController.cs b/HRM.UI/Controllers/Payroll/SettlementController.cs index 6738698..f747112 100644 --- a/HRM.UI/Controllers/Payroll/SettlementController.cs +++ b/HRM.UI/Controllers/Payroll/SettlementController.cs @@ -1,17 +1,19 @@ -using Microsoft.AspNetCore.Http; +using HRM.BO; +using HRM.DA; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using HRM.BO; -using HRM.DA; namespace HRM.UI.Controllers.Payroll { [Route("api/settlement")] [ApiController] - public class SettlementController : ControllerBase + [Authorize] + public class SettlementController : ControllerBase { private readonly IFSHeadService _fsHeadService; private readonly IFSTranService _fsTranService; diff --git a/HRM.UI/Controllers/Payroll/UnAuthLeaveController.cs b/HRM.UI/Controllers/Payroll/UnAuthLeaveController.cs index a052909..38c2f1c 100644 --- a/HRM.UI/Controllers/Payroll/UnAuthLeaveController.cs +++ b/HRM.UI/Controllers/Payroll/UnAuthLeaveController.cs @@ -1,16 +1,18 @@ -using Microsoft.AspNetCore.Http; +using HRM.BO; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using HRM.BO; namespace HRM.UI.Controllers.Payroll { [Route("api/UnAuthLeave")] [ApiController] - public class UnAuthLeaveController : ControllerBase + [Authorize] + public class UnAuthLeaveController : ControllerBase { private readonly IEmployeeUnAuthorizeLeaveService _employeeUnAuthorizeLeaveService; private readonly IUnAuthorizeLeaveService _unAuthorizeLeaveService; diff --git a/HRM.UI/Controllers/WeatherForecastController.cs b/HRM.UI/Controllers/WeatherForecastController.cs index dcca0f1..e49b6e6 100644 --- a/HRM.UI/Controllers/WeatherForecastController.cs +++ b/HRM.UI/Controllers/WeatherForecastController.cs @@ -1,15 +1,17 @@ -using System; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; namespace WebApplication1.Controllers { [ApiController] [Route("[controller]")] - public class WeatherForecastController : ControllerBase + [Authorize] + public class WeatherForecastController : ControllerBase { private static readonly string[] Summaries = new[] {