init
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user