public void Post([FromBody] RestaurantPOS_BillingInfoKOT RestaurantPOS_BillingInfoKOT)
 {
     if (ModelState.IsValid)
     {
         RestaurantPOS_BillingInfoKOTRepository.Add(RestaurantPOS_BillingInfoKOT);
     }
 }
        public void Put(int id, [FromBody] RestaurantPOS_BillingInfoKOT RestaurantPOS_BillingInfoKOT)
        {
            RestaurantPOS_BillingInfoKOT.Id = id;

            if (ModelState.IsValid)
            {
                RestaurantPOS_BillingInfoKOTRepository.Update(RestaurantPOS_BillingInfoKOT);
            }
        }
 public void Update(RestaurantPOS_BillingInfoKOT RestaurantPOS_BillingInfoKOT)
 {
     using (IDbConnection dbConnection = Connection)
     {
         string sQuery = "UPDATE RestaurantPOS_BillingInfoKOT SET  BillNo=@BillNo, BillDate=@BillDate, KOTDiscountPer=@KOTDiscountPer, GrandTotal=@GrandTotal, Cash=@Cash, Change=@Change, Operator=@Operator,PaymentMode=@PaymentMode,ExchangeRate=@ExchangeRate,CurrencyCode=@CurrencyCode,DiscountReason=@DiscountReason,Member_ID=@Member_ID"
                         + " WHERE Id = @Id";
         dbConnection.Open();
         dbConnection.Query(sQuery, RestaurantPOS_BillingInfoKOT);
     }
 }
 public void Add(RestaurantPOS_BillingInfoKOT RestaurantPOS_BillingInfoKOT)
 {
     using (IDbConnection dbConnection = Connection)
     {
         string sQuery = "INSERT INTO  RestaurantPOS_BillingInfoKOT(Id, BillNo, BillDate, KOTDiscountPer, GrandTotal, Cash, Change, Operator,PaymentMode,ExchangeRate,CurrencyCode,DiscountReason,Member_ID )"
                         + " VALUES(@Id, @BillNo, @BillDate, @KOTDiscountPer, @GrandTotal, @Cash, @Change, @Operator,@PaymentMode,@ExchangeRate,@CurrencyCode,@DiscountReason,@Member_ID   )";
         dbConnection.Open();
         dbConnection.Query(sQuery, RestaurantPOS_BillingInfoKOT);
     }
 }