// GET: SalesQuotations public ActionResult Index() { try { LogHandler.WriteLog("Purchase Index page requested by #UserId"); SalesQuotationViewModels model = new SalesQuotationViewModels(); model.SalesQuotation = new SalesQuotation(); model.SalesQuotationList = salesquotationRepository.GetAllQuotation(); model.BranchList = salesquotationRepository.GetAddressList().ToList(); model.BussinessList = salesquotationRepository.GetVendorList(); model.ProductList = salesquotationRepository.GetProductList(); model.VATList = salesquotationRepository.GetVATList(); return(View(model)); } catch (Exception ex) { ExceptionHandler.LogException(ex); ViewBag.AppErrorMessage = ex.Message; return(View("Error")); } }