private async Task DeleteDetail(Guid id)
        {
            var CheckHeader = await _repository.GetAsync(id);

            foreach (var receiptDetail in CheckHeader.CheckDetails)
            {
                await _checkDetailRepository.DeleteAsync(receiptDetail.Id, true);
            }
        }