protected void itemDropDownList_SelectedIndexChanged(object sender, EventArgs e)
        {
            int  itemId = Convert.ToInt32(itemDropDownList.SelectedValue);
            Item item   = stockOutManager.GetReorderLevel(itemId);

            reorderLevelTextBox.Text = item.ReorderLavel.ToString();

            //this code is for available quantity////////////

            StockIn stockIn = new StockIn();

            stockIn.ItemID = itemId;
            StockIn stock = stockOutManager.IsExist(stockIn);

            if (stock == null)
            {
                stockOutTextBox.Text = " ";
                messageLabel.Text    = "Empty Available Quantity";
            }
            else
            {
                StockIn aStockIn = stockOutManager.GetAvailableQuantity(stockIn);
                stockOutTextBox.Text = aStockIn.AvailableQuantity;
            }
        }
 public int GetAvailableQuantity(int id)
 {
     return(aStockOutManager.GetAvailableQuantity(id));
 }