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