public ActionResult BookingList() { try { //Lấy UserID Đăng nhập UserID = Session[CConfig.SESSION_USERID] == null ? 1 : Convert.ToInt32(Session[CConfig.SESSION_USERID]); HotelCode = Session[CConfig.SESSION_HOTELCODE] == null ? "OzeHotelxxxx" : Session[CConfig.SESSION_HOTELCODE].ToString(); //Lay danh sach phong ViewData["Room"] = new SelectList(data.GetAllRoom(), "ID", "Name"); //Lấy list loai phong ViewData["hangphong"] = new SelectList(data.GetList_RoomType(UserID), "Value", "Name"); //Lấy danh sách loại hình ViewData["loaihinh"] = new SelectList(data.GetList_ReservationType(UserID), "Value", "Name"); //Lấy danh sách trạng thái đặt phòng ViewData["trangthai"] = new SelectList(data.GetList_ReservationStatus(UserID), "Value", "Name"); //ThichPV Test 1234 } catch (Exception ex) { CLog.LogError(CBase.GetDeepCaller(), CBase.GetDetailError(ex)); return(RedirectToAction("Index", "FloorPlan")); } return(View()); }