public ActionResult Taxes() { var taxes = _administrationService.GetAllTaxes(false); var model = new Models.ViewModels.Administration.TaxesViewModel(); foreach (var tax in taxes) { var taxVM = new Models.ViewModels.Administration.TaxViewModel(); taxVM.IsActive = tax.IsActive; taxVM.PurchasingAccountId = tax.PurchasingAccountId; taxVM.SalesAccountId = tax.SalesAccountId; taxVM.TaxCode = tax.TaxCode; taxVM.TaxName = tax.TaxName; taxVM.Rate = tax.Rate; model.Taxes.Add(taxVM); } return(View(model)); }
public ActionResult Taxes() { var taxes = _administrationService.GetAllTaxes(false); var model = new Models.ViewModels.Administration.TaxesViewModel(); foreach (var tax in taxes) { var taxVM = new Models.ViewModels.Administration.TaxViewModel(); taxVM.IsActive = tax.IsActive; taxVM.PurchasingAccountId = tax.PurchasingAccountId; taxVM.SalesAccountId = tax.SalesAccountId; taxVM.TaxCode = tax.TaxCode; taxVM.TaxName = tax.TaxName; taxVM.Rate = tax.Rate; model.Taxes.Add(taxVM); } return View(model); }