public JsonResult InsertTrainEnquiryItem(EnquiryViewModel enqViewModel) { try { Set_Date_Session(enqViewModel.Enquiry); enqViewModel.Enquiry.EnquiryItemId = _enqRepo.InsertTrainEnquiryItem(enqViewModel.Enquiry); enqViewModel.FriendlyMessage.Add(MessageStore.Get("Enq04")); Logger.Debug("Enquiry Controller InsertTrainEnquiryItem"); } catch (Exception ex) { enqViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01")); Logger.Error("Enquiry Controller - InsertTrainEnquiryItem " + ex.Message); } return(Json(enqViewModel)); }