Beispiel #1
0
        private void btnXacNhanHomestay_Click(object sender, EventArgs e)
        {
            if (idHomestay != -1)
            {
                try
                {
                    client.ConfirmHomestayBooking_BE(idHomestay);

                    idHomestay                   = -1;
                    homestay_bookings            = JsonConvert.DeserializeObject <List <homestay_booking> >(client.GetListBookingOptional_BE("homestay_bookings", cbHomestay.Text));
                    dtHomestayBooking.DataSource = homestay_bookings;
                }
                catch
                {
                }
            }
            else
            {
                MessageBox.Show("Bạn chưa chọn");
            }
        }
 public ActionResult ConfirmHomestayBooking(int id)
 {
     client.ConfirmHomestayBooking_BE(id);
     return(RedirectToAction("List", "BackendBooking", new { area = "Backend" }));
 }