public void Update(RestaurantPOS_OrderedProductBillHD RestaurantPOS_OrderedProductBillHD)
 {
     using (IDbConnection dbConnection = Connection)
     {
         string sQuery = "UPDATE RestaurantPOS_OrderedProductBillHD SET  BillID=@BillID, Dish=@Dish, Rate=@Rate, Quantity=@Quantity, Amount=@Amount, VATPer=@VATPer, VATAmount=@VATAmount,STPer=@STPer,STAmount=@STAmount,SCPer=@SCPer,SCAmount=@SCAmount,DiscountPer=@DiscountPer,DiscountAmount=@DiscountAmount,TotalAmount=@TotalAmount,Notes=@Notes"
                         + " WHERE OP_ID = @OP_ID";
         dbConnection.Open();
         dbConnection.Query(sQuery, RestaurantPOS_OrderedProductBillHD);
     }
 }
 public void Add(RestaurantPOS_OrderedProductBillHD RestaurantPOS_OrderedProductBillEB)
 {
     using (IDbConnection dbConnection = Connection)
     {
         string sQuery = " INSERT INTO RestaurantPOS_OrderedProductBillHD(BillID, Dish, Rate, Quantity, Amount, VATPer, VATAmount, STPer, STAmount, SCPer, SCAmount, DiscountPer, DiscountAmount, TotalAmount, Notes )"
                         + " VALUES(@BillID, @Dish, @Rate, @Quantity, @Amount, @VATPer, @VATAmount,@STPer,@STAmount,@SCPer,@SCAmount,@DiscountPer,@DiscountAmount,@TotalAmount,@Notes   )";
         dbConnection.Open();
         dbConnection.Execute(sQuery, RestaurantPOS_OrderedProductBillEB);
     }
 }