public IActionResult ChooseRoom(string room)
        {
            //get the selected room details from the button click
            ResourceFields SelectedRoom = HomeControllerActions.ChooseRoomFromButtonClick(room);

            //get the ID of the room selected and then call the appointment Data for that room
            RoomID = Convert.ToInt32(SelectedRoom.Id);
            // GetData(RoomID);

            //this works, therefore data is being shown
            ViewBag.RoomTitle = SelectedRoom.Text;
                GetData();
            //reload the index page
            return View("./Index");
        }
        // GET: /<controller>/
        public IActionResult Index()
        {
            var Rooms = HomeControllerActions.LoadRoomDetails();
            var Owners = HomeControllerActions.LoadOwnerDetails(Rooms);

            ViewBag.categorizeData = HomeControllerActions.LoadCategoryValue();

            //ViewBag.Grouping = new List<String>() { "Rooms", "Owners" };
            //ViewBag.RoomData = Rooms;
            //ViewBag.OwnerData = Owners;

            DateTime now = DateTime.Now;
            ViewBag.CurrentDate = now.Date;

            //  ViewBag.appointments = GetData(RoomID);
            //GetData();
            return View();
        }