private async Task <bool> HistoryExistsAsync(Guid id)
 {
     return(await _repository.CountAsync(id) > 0);
 }