public async Task <ISpiderDocumentInfo> AddOrUpdateAsync(ISpiderDocumentInfo entity)
        {
            var newEntity = SpiderDocumentInfoEntity.Create(entity);
            await _tableStorage.InsertOrReplaceAsync(newEntity);

            return(newEntity);
        }
        public static SpiderDocumentInfoEntity Create(ISpiderDocumentInfo src)
        {
            return(new SpiderDocumentInfoEntity
            {
                PartitionKey = GeneratePartitionKey(src.CustomerId),
                RowKey = GenerateRowKey(src.DocumentId),

                CurrentCheckId = src.CurrentCheckId,
                PreviousCheckId = src.PreviousCheckId,
                CheckDiff = Mapper.Map <SpiderCheckResultDiff>(src.CheckDiff)
            });
        }