// GET: SalesInvoices
        public ActionResult Index()
        {
            try
            {
                LogHandler.WriteLog("Sales Invoice Index page requested by #UserId");
                var qList = salesinvoiceRepository.GetAllSalesInvoice().ToList();

                SalesInvoiceViewModels model = new SalesInvoiceViewModels();
                model.SalesInvoiceList = qList;

                //Bind Branch
                var BranchList = salesinvoiceRepository.GetBranchList().ToList();
                model.BranchList = BranchList;

                //Bind VAT
                var VATList = salesinvoiceRepository.GetVAT().ToList();
                model.VATList = VATList;

                //Bind Product
                var ProductList = salesinvoiceRepository.GetProductList().ToList();
                model.ProductList = ProductList;

                //Bind Businesspartner
                var BusinessParterList = salesinvoiceRepository.GetBusinessPartnerList().ToList();
                model.BusinessPartnerList = BusinessParterList;

                //Bind GoodsReceipt
                var qList1 = salesinvoiceRepository.GetSalesDelivery().ToList();
                model.SalesDeliveryList = qList1;

                return(View(model));
            }
            catch (Exception ex)
            {
                ExceptionHandler.LogException(ex);
                ViewBag.AppErrorMessage = ex.Message;
                return(View("Error"));
            }
        }