예제 #1
0
        public IEnumerable <CheckpointDTO> GetCheckpoints()
        {
            try
            {
                log.Debug("GetCheckpoints");

                // get
                IEnumerable <R_Checkpoint> results = Repository.GetCheckpoints();

                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;
            }
        }