コード例 #1
0
        public PartialViewResult GetFlightDetailsById(int enquiryItemId)
        {
            EnquiryViewModel enqViewModel = new EnquiryViewModel();

            try
            {
                enqViewModel.Enquiry = _enqRepo.GetFlightDetailsById(enquiryItemId);

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

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

            TempData["enqViewModel"] = enqViewModel;

            enqViewModel.Cities = _pRepo.drpGetCountryStateCity();

            enqViewModel.Users = _enqRepo.drpGetUsers();

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