コード例 #1
0
        public IEnumerable <CheckpointDTO> GetCheckpointListByPlannedRouteId(int checkpointId)
        {
            try
            {
                log.Debug("PlannedRouteId: " + checkpointId + " ");

                // get list by PlannedRoute id
                IEnumerable <R_Checkpoint> results = Repository.GetCheckpointListByPlannedRouteId(checkpointId);

                IEnumerable <CheckpointDTO> resultsDTO = results.Select(e => new CheckpointDTO(e));

                log.Debug("result: 'success', count: " + (resultsDTO != null ? resultsDTO.Count().ToString() : "null"));

                return(resultsDTO);
            }
            catch (System.Exception e)
            {
                // error
                log.Error(e.ToString());

                throw;
            }
        }