diff --git a/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs b/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs index c89bff9c..d641ee57 100644 --- a/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs +++ b/IRaCIS.Core.Application/Service/Common/FrontAuditConfigService.cs @@ -34,7 +34,7 @@ namespace IRaCIS.Core.Application.Service [HttpPost] public async Task CopyOtherToThisItem(CopyOtherToThisItem item) { - var c = _frontAuditConfigRepository.Where(x => item.DataSource.Contains(x.ParentId)).ToList(); + var list = _frontAuditConfigRepository.Where(x => item.DataSource.Contains(x.ParentId)).ToList().GroupBy(x => new { x.ValueCN }, (key, lst) => new FrontAuditConfig { Sort = lst.Select(x => x.Sort).FirstOrDefault(),