public ProcessDataSearch QueryFlowChartDataByMasterUid(int flowChartMaster_uid) { var tempDataList = flowChartMasterRepository.QueryFlowChartDataByMasterUid(flowChartMaster_uid); ProcessDataSearch result = new ProcessDataSearch(); foreach (var item in tempDataList.Distinct()) { result.Customer = item.Customer; result.Part_Types = item.Part_Types; result.Product_Phase = item.Product_Phase; result.Project = item.Project; result.Func_Plant = item.Func_Plant; } return(result); }