public FlowChartMasterDTO GetMasterItemBySearchCondition(PPCheckDataSearch searchModel) { var item = flowChartMasterRepository.GetMany(m => m.System_Project.Project_Name == searchModel.Project && m.Part_Types == searchModel.Part_Types && m.Is_Closed == false).FirstOrDefault(); if (item != null) { var dto = AutoMapper.Mapper.Map <FlowChartMasterDTO>(item); return(dto); } else { return(null); } }
public IHttpActionResult GetMasterItemBySearchConditionAPI(PPCheckDataSearch searchModel) { var result = flowChartService.GetMasterItemBySearchCondition(searchModel); return(Ok(result)); }
public string CheckMatchFlagAPI(PPCheckDataSearch search) { var checkData = EventReportManagerService.CheckMatchFlag(search); return(checkData); }