コード例 #1
0
        public PartialViewResult DeleteEnquiryItemById(int enquiryItemId)
        {
            EnquiryViewModel enqViewModel = new EnquiryViewModel();

            try
            {
                _enqRepo.DeleteEnquiryItemById(enquiryItemId);

                _enqRepo.DeleteEnquiryItemTypeById(enquiryItemId);

                _enqRepo.DeleteEnquiryItemPassById(enquiryItemId);

                _enqRepo.DeleteEnquiryItemTransferById(enquiryItemId);
            }
            catch (Exception ex)
            {
                enqViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01"));

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

            TempData["enqViewModel"] = enqViewModel;

            // enqViewModel.PackageTypes = _pRepo.drpGetPackageTypes();

            return(PartialView("_EnquiryItem", enqViewModel));
        }