Added Employee ID of creater to bucket in Employee IDs
This commit is contained in:
parent
a64ce4fb02
commit
f406a15508
@ -1184,7 +1184,11 @@ namespace Marco.Pms.Services.Helpers
|
|||||||
var emplyeeIds = employeeBucketMappings.Select(eb => eb.EmployeeId).ToList();
|
var emplyeeIds = employeeBucketMappings.Select(eb => eb.EmployeeId).ToList();
|
||||||
List<ContactBucketMapping>? contactBuckets = contactBucketMappings.Where(cb => cb.BucketId == bucket.Id).ToList();
|
List<ContactBucketMapping>? contactBuckets = contactBucketMappings.Where(cb => cb.BucketId == bucket.Id).ToList();
|
||||||
AssignBucketVM bucketVM = bucket.ToAssignBucketVMFromBucket();
|
AssignBucketVM bucketVM = bucket.ToAssignBucketVMFromBucket();
|
||||||
bucketVM.EmployeeIds = emplyeeIds;
|
if (bucketVM.CreatedBy != null)
|
||||||
|
{
|
||||||
|
emplyeeIds.Add(bucketVM.CreatedBy.Id);
|
||||||
|
}
|
||||||
|
bucketVM.EmployeeIds = emplyeeIds.Distinct().ToList();
|
||||||
bucketVM.NumberOfContacts = contactBuckets.Count;
|
bucketVM.NumberOfContacts = contactBuckets.Count;
|
||||||
bucketVMs.Add(bucketVM);
|
bucketVMs.Add(bucketVM);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user