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