//public async Task DeleteResultItem(FaceItem item)
        //{
        //    if (container == null)
        //        return;

        //    await container.DeleteItemAsync<FaceItem>(item.Id, new PartitionKey(item.PlaceName));
        //}

        public async void UpdateFaceCount(long faceCount, long maskCount, string placeName)
        {
            List <FaceItem> items = await GetResultItemsByPlace(placeName);

            if (items.Count == 0)
            {
                var item = new FaceItem()
                {
                    Id             = string.Format("{0:10}_{1}", DateTime.Now.Ticks, Guid.NewGuid()),
                    FaceCount      = faceCount,
                    MaskCount      = maskCount,
                    PlaceName      = placeName,
                    RecordDateTime = DateTime.Now.ToString()
                };
                await CreateFaceItem(item);
            }
            else
            {
                items[0].FaceCount      = faceCount;
                items[0].MaskCount      = maskCount;
                items[0].RecordDateTime = DateTime.Now.ToString();
                await ReplaceFaceItem(items[0]);
            }
        }