Exemple #1
0
        public DomainModel.TaskHistory GetById(int TaskHistoryId)
        {
            var TaskHistory = TaskHistoryRepository.GetById(TaskHistoryId);

            if (TaskHistory == null)
            {
                throw new BadRequestException(ErrorMessages.TaskHistoryNoEncontrado);
            }

            return(TaskHistory);
        }
Exemple #2
0
        public void DeleteTaskHistory(int TaskHistoryId)
        {
            var TaskHistory = TaskHistoryRepository.GetById(TaskHistoryId);

            TaskHistoryRepository.Delete(TaskHistory);
        }