Ashutosh_Refactor #107

Merged
ashutosh.nehete merged 52 commits from Ashutosh_Refactor into main 2025-07-18 13:01:29 +00:00
Showing only changes of commit 72dccc0c6a - Show all commits

View File

@ -1184,7 +1184,11 @@ namespace Marco.Pms.Services.Helpers
var emplyeeIds = employeeBucketMappings.Select(eb => eb.EmployeeId).ToList();
List<ContactBucketMapping>? contactBuckets = contactBucketMappings.Where(cb => cb.BucketId == bucket.Id).ToList();
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;
bucketVMs.Add(bucketVM);
}