public TaskTypeDTO GetTaskType(int taskTypeId) { try { //Requires.NotNegative("taskTypeId", taskTypeId); log.Debug("taskTypeId: " + taskTypeId + " "); // get R_TaskType t = Repository.GetTaskType(taskTypeId); TaskTypeDTO dto = new TaskTypeDTO(t); log.Debug(TaskTypeDTO.FormatTaskTypeDTO(dto)); return(dto); } catch (System.Exception e) { // error log.Error(e.ToString()); throw; } }