public async Task InsertStockItemAsync(StockItem StockItem)
        {
            StockItem.PartitionKey = GetStockItemPartitionKey(StockItem);
            StockItem.RowKey       = GetStockItemRowKey(StockItem);
            StockItem.PublicId     = StockItem.GetPublicId();

            await InsertAsync <StockItem>(StockItem, StockItems);
        }
        public void InsertStockItem(StockItem StockItem)
        {
            StockItem.PartitionKey = GetStockItemPartitionKey(StockItem);
            StockItem.RowKey       = GetStockItemRowKey(StockItem);
            StockItem.PublicId     = StockItem.GetPublicId();

            Insert <StockItem>(StockItem, StockItems);
        }
		public string Post(StockItem entity)
		{
			if (ModelState.IsValid)
			{
				db.InsertStockItem(entity);

				entity.PublicId = entity.GetPublicId();
				return entity.GetPublicEntity<StockItem>().PublicId;
			}

            return string.Empty;
		}
        public async Task InsertStockItemAsync(StockItem StockItem)
        {
            StockItem.PartitionKey = GetStockItemPartitionKey(StockItem);
			StockItem.RowKey = GetStockItemRowKey(StockItem);
			StockItem.PublicId = StockItem.GetPublicId();

            await InsertAsync<StockItem>(StockItem, StockItems);
        }
        public void InsertStockItem(StockItem StockItem)
        {
            StockItem.PartitionKey = GetStockItemPartitionKey(StockItem);
			StockItem.RowKey = GetStockItemRowKey(StockItem);
			StockItem.PublicId = StockItem.GetPublicId();

            Insert<StockItem>(StockItem, StockItems);
        }