public bool Sell_Products(Order order)
        {
            if (order == null || order.Product == null || order.Quantity == null || order.B==null|| order.Product.Count == 0 || order.Quantity.Count == 0)
            {
                return false;
            }
            else {

                if (order.B.Insert_Bill(order.B))
                {
                    if (order.B.return_Bill_Id(order.B))
                    {
                        if (order.Insert_Product_Sell(order,order.B.Sales_Id1))
                        {

                            return true;
                        }
                        else
                        {
                            return false;
                        }
                    }
                    else
                    {
                        return false;
                    }
                }
                else {
                    return false;
                }

            }
        }
 public bool Insert_Product_Sell(Order order,int Sales_Id)
 {
     DAL.OrderDAC order1 = new DAL.OrderDAC();
     if (order.Product.Count == 0 || order.Quantity.Count == 0 || Sales_Id == 0  || order==null) return false;
     else
     {
      order1.Insert_Product_Sell(order,b.Sales_Id1);
         return true;
     }
 }