Authorized

This commit is contained in:
Mohaimen Hasan 2026-11-04 17:48:21 +06:00
parent 9aaa243277
commit 96ffa17045
9 changed files with 61 additions and 44 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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[]
{