public DomainModel.TaskHistory GetById(int TaskHistoryId) { var TaskHistory = TaskHistoryRepository.GetById(TaskHistoryId); if (TaskHistory == null) { throw new BadRequestException(ErrorMessages.TaskHistoryNoEncontrado); } return(TaskHistory); }
public void DeleteTaskHistory(int TaskHistoryId) { var TaskHistory = TaskHistoryRepository.GetById(TaskHistoryId); TaskHistoryRepository.Delete(TaskHistory); }