Пример #1
0
        public JsonResult InsertFlightEnquiryItem(EnquiryViewModel enqViewModel)
        {
            try
            {
                Set_Date_Session(enqViewModel.Enquiry);

                enqViewModel.Enquiry.EnquiryItemId = _enqRepo.InsertFlightEnquiryItem(enqViewModel.Enquiry);

                enqViewModel.FriendlyMessage.Add(MessageStore.Get("Enq04"));

                Logger.Debug("Enquiry Controller InsertFlightEnquiryItem");
            }
            catch (Exception ex)
            {
                enqViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01"));

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

            return(Json(enqViewModel));
        }