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



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

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

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

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

            return(Json(enqViewModel));
        }