Added one more condition to check if active is false while removing the employee from buckets
This commit is contained in:
parent
6ac28de56a
commit
5deb97d73b
@ -1369,7 +1369,7 @@ namespace Marco.Pms.Services.Helpers
|
|||||||
_context.EmployeeBucketMappings.Add(employeeBucketMapping);
|
_context.EmployeeBucketMappings.Add(employeeBucketMapping);
|
||||||
assignedEmployee += 1;
|
assignedEmployee += 1;
|
||||||
}
|
}
|
||||||
else
|
else if (!assignBucket.IsActive)
|
||||||
{
|
{
|
||||||
EmployeeBucketMapping? employeeBucketMapping = employeeBuckets.FirstOrDefault(eb => eb.BucketId == bucketId && eb.EmployeeId == assignBucket.EmployeeId);
|
EmployeeBucketMapping? employeeBucketMapping = employeeBuckets.FirstOrDefault(eb => eb.BucketId == bucketId && eb.EmployeeId == assignBucket.EmployeeId);
|
||||||
if (employeeBucketMapping != null)
|
if (employeeBucketMapping != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user