예제 #1
0
        public CheckpointDTO GetCheckpoint(int checkpointId)
        {
            try
            {
                //Requires.NotNegative("checkpointId", checkpointId);

                log.Debug("checkpointId: " + checkpointId + " ");

                // get
                R_Checkpoint t = Repository.GetCheckpoint(checkpointId);

                CheckpointDTO dto = new CheckpointDTO(t);

                log.Debug(CheckpointDTO.FormatCheckpointDTO(dto));

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

                throw;
            }
        }