Distinct
var sr = source .GroupBy(x => x.OperationId) .Distinct() .SelectMany(v => v.Distinct()) .Select(n => new VoucherForPrintSalaryInvoice() { EmployeeName = n.Employee.EmployeeName, OperationName = n.Operation.OperationName.ToString(), OperationTypeId = n.Operation.OperationTypeId, Amount = _voucherService .GeSumOftEmployeeOperations(n.EmployeeId, App.MainCurrency, App.MainCurrency, month, year) }) .Distinct() .ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)