This commit is contained in:
SamSys
2025-12-23 15:10:17 +03:30
parent f00fde4084
commit 132c8ac5a4
2 changed files with 94 additions and 2 deletions

View File

@@ -13,10 +13,11 @@ namespace CompanyManagment.EFCore.Repository;
public class LeaveRepository : RepositoryBase<long, Leave>, ILeaveRepository
{
private readonly CompanyContext _context;
public LeaveRepository(CompanyContext context) : base(context)
private readonly long _workshopId;
public LeaveRepository(CompanyContext context, IAuthHelper authHelper) : base(context)
{
_context = context;
_workshopId = authHelper.GetWorkshopId();
}
public EditLeave GetDetails(long id)
@@ -536,4 +537,11 @@ public class LeaveRepository : RepositoryBase<long, Leave>, ILeaveRepository
(starContract >= x.StartLeaveGr && starContract <= x.EndLeaveGr) ||
(endContract >= x.StartLeaveGr && endContract <= x.EndLeaveGr));
}
#region ForApi
#endregion
}