public virtual async Task PrepareHistoryModel(HistoryModel model, History history)
        {
            if (history != null)
            {
            }

            //Gl Dropdown
            foreach (var item in (await _financialDataService.GetGL((int)_workContext.CurrentCustomer.ClientId)).Where(h => h.HGL != null))
            {
                model.AvailableGL.Add(new SelectListItem {
                    Text = item.HGL, Value = item.HGL.ToString()
                });
            }
        }
        public async Task <IActionResult> DeptExpense()
        {
            var model = new DepExpListModel();

            //CostCenter DropDown
            model.AvailableCostCenter.Add(new SelectListItem {
                Text = "ALL", Value = "0"
            });
            foreach (var item in (await _financialDataService.GetCostCenterList((int)_workContext.CurrentCustomer.ClientId)))
            {
                model.AvailableCostCenter.Add(new SelectListItem {
                    Text = item.Both, Value = item.SName.ToString()
                });
            }

            //Vendor Dropdown
            model.AvailableVendors.Add(new SelectListItem {
                Text = "ALL", Value = "0"
            });
            foreach (var item in (await _financialDataService.GetVendorUsage((int)_workContext.CurrentCustomer.ClientId)))
            {
                model.AvailableVendors.Add(new SelectListItem {
                    Text = item.HVendorName, Value = item.HVendorName.ToString()
                });
            }

            //Gl Dropdown
            model.AvailableGL.Add(new SelectListItem {
                Text = "ALL", Value = "0"
            });
            foreach (var item in (await _financialDataService.GetGL((int)_workContext.CurrentCustomer.ClientId)).Where(h => h.HGL != null))
            {
                model.AvailableGL.Add(new SelectListItem {
                    Text = item.HGL, Value = item.HGL.ToString()
                });
            }

            return(View(model));
        }