public ActionResult ReserveRoom(ReverveRoomModel model)
        {
            if (model.dateTo <= model.dateFrom)
            {
                ModelState.AddModelError("dateTo", "Date should be later than above");
            }

            if (model.dateFrom == null)
            {
                ModelState.AddModelError("dateFrom", "Pole nie moze być puste");
            }


            if (ModelState.IsValid)
            {
                //repository.BookHolidayHome(model.holidayhomeId, model.dateFrom, model.dateTo);

                CheckBookingModel modelbook = repository.bookroom(model.roomId, model.dateFrom, model.dateTo);
                ViewBag.checkbookingmodel = modelbook;

                return(RedirectToAction("ShowDetailsRoom", "Home", new { Id = model.roomId }));
            }
            else
            {
                Room            room       = repository.GetRoomById(model.roomId);
                List <DateTime> list       = repository.GetDaysBookedRoom(model.roomId);
                List <string>   liststring = new List <string>();

                foreach (var item in list)
                {
                    liststring.Add(item.ToShortDateString());
                }

                BookRoomViewModel viewmodel = new BookRoomViewModel();
                viewmodel.room = room;
                viewmodel.list = liststring;

                return(View("~/Views/Client/BookRoom.cshtml", viewmodel));



                //Room room = repository.GetRoomById(model.roomId);
                //return View("~/Views/Client/BookRoom.cshtml", room);
            }
        }