Пример #1
0
        public InductionDowntimeResponseDto GetInductionDowntimeData(DateTime startdate,
                                                                     DateTime enddate, int?lineNumber, int?jobNumber, int?processCode)
        {
            InductionDowntimeResponseDto dto = new InductionDowntimeResponseDto();

            dto.Data = _inductionDowntimeRepository.GetDownTimeEvents(startdate,
                                                                      enddate, lineNumber, jobNumber, processCode);
            return(dto);
        }
        public IHttpActionResult Get(DateTime startdate, DateTime enddate, int?lineNumber = null, int?jobNumber = null,
                                     int?processCode = null)
        {
            InductionDowntimeResponseDto dto = _inductiondowntimedomainlogic.GetInductionDowntimeData(
                startdate, enddate, lineNumber, jobNumber, processCode);

            InductionDowntimeProcessCodeSummary summary = _inductiondowntimedomainlogic.GetProcessCodeSummary(startdate, enddate,
                                                                                                              lineNumber, jobNumber, processCode);

            return(Ok(summary));
        }