public ActionResult Beranda() { BookingBM data = new BookingBM(); ViewBag.Menu = 0; ViewBag.InfoKamar = data.listKamar(); ViewBag.InforKamarNotAvailable = data.InforKamarNotAvailable(); return View(); }
// GET: /Booking/ public ActionResult Index() { var tamu = db.Tamu.Include(t => t.JenisKelamin).Include(t => t.TipeIdentitas); BookingBM data = new BookingBM(); ViewBag.TipeIdentitasID = new SelectList(db.TipeIdentitas, "ID", "Nama"); ViewBag.JenisKelaminID = new SelectList(db.JenisKelamin, "ID", "Nama"); //ViewBag.Kecamatan = new SelectList(db.Kecamatan, "ID", "Nama"); ////ViewBag.KabupatenKota = new SelectList(db.KabupatenKota, "ID", "Nama"); //ViewBag.TipeKamar = data.listKamar(); ViewBag.TipeKamar = new SelectList(db.TipeKamar, "ID", "Nama"); ViewBag.InfoKamar = data.listKamar(); TempData["status"] = "false"; //TempData["pesan"] = "Data Pemesanan Anda sudah terdaftar. Rincian konfirmasi sudah dikirim melalui nomor Handphone"; return View(tamu.ToList()); }