public ActionResult Index(QuotationViewModel qViewModel) { qViewModel.Enquiries = _enqRepo.GetEnquiryItemDetails(qViewModel.Enquiry.EnquiryId); _qRepo.GetQuotationTaskInfo(qViewModel.Quotation); qViewModel.Users = _enqRepo.drpGetUsers(); return(View("Index", qViewModel)); }
public PartialViewResult GetEnquiryItemDetailsView(int enquiryId) { EnquiryViewModel enqViewModel = new EnquiryViewModel(); try { enqViewModel.Enquiries = _enqRepo.GetEnquiryItemDetails(enquiryId); } catch (Exception ex) { enqViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01")); Logger.Error("Enquiry Controller - GetEnquiryItemDetailsView " + ex.Message); } TempData["enqViewModel"] = enqViewModel; return(PartialView("_EnquiryItem", enqViewModel)); }