Пример #1
0
        public PartialViewResult GetHotelDetailsById(int enquiryItemId)
        {
            EnquiryViewModel enqViewModel = new EnquiryViewModel();

            try
            {
                enqViewModel.Enquiry = _enqRepo.GetHotelDetailsById(enquiryItemId);
            }
            catch (Exception ex)
            {
                enqViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01"));

                Logger.Error("Enquiry Controller - GetHotelDetailsById  " + ex.Message);
            }

            TempData["enqViewModel"] = enqViewModel;

            enqViewModel.HotelTypes = _hRepo.drpGetHotelTypes();

            enqViewModel.RoomTypes = _hRepo.drpGetRoomTypes();

            enqViewModel.Cities = _pRepo.drpGetCountryStateCity();

            enqViewModel.Users = _enqRepo.drpGetUsers();

            enqViewModel.Countries = _cRepo.drpGetCountries();

            enqViewModel.States = _cRepo.drpGetstates();

            enqViewModel.cityes = _enqRepo.drpGetcity();

            return(PartialView("_HotelDetails", enqViewModel));
        }