public async Task <string> Update(Domain.AggregateModels.SellAggregates.Sell entity, string correlationToken)
        {
            string result = String.Empty;

            entity.CorrelationToken = correlationToken;
            // replace the item with the updated content
            ItemResponse <PoS.Sell.Domain.AggregateModels.SellAggregates.Sell> SellResponse = await _container.ReplaceItemAsync <PoS.Sell.Domain.AggregateModels.SellAggregates.Sell>(entity, entity.Folio_Venta, new PartitionKey(entity.UserId));

            result = "Item Updated";

            return(result);
        }
        public async Task <string> Add(Domain.AggregateModels.SellAggregates.Sell entity, string correlationToken)
        {
            string result = String.Empty;

            entity.CorrelationToken = correlationToken;
            await ConfigureDbAndContainerAsync();

            try
            {
                // Read the item to see if it exists.
                ItemResponse <PoS.Sell.Domain.AggregateModels.SellAggregates.Sell> SellResponse = await _container.ReadItemAsync <PoS.Sell.Domain.AggregateModels.SellAggregates.Sell>(entity.Folio_Venta,
                                                                                                                                                                                       new PartitionKey(entity.UserId));

                result = "Existing Item";
            }
            catch (CosmosException ex) when(ex.StatusCode == HttpStatusCode.NotFound)
            {
                ItemResponse <PoS.Sell.Domain.AggregateModels.SellAggregates.Sell> SellResponse = await _container.CreateItemAsync <PoS.Sell.Domain.AggregateModels.SellAggregates.Sell>(entity, new PartitionKey(entity.UserId));

                result = "Item Created";
            }
            return(result);
        }