private async Task SetViewBagDataAsync() { var vatTypes = await vatTypeService.GetAll(); this.ViewBag.VatTypes = JsonConvert.SerializeObject(vatTypes); this.ViewBag.Employees = await employeeService.GetAllCompanyEmployees(); this.ViewBag.PaymentTypes = await paymentTypeService.GetAllCompanyPaymentTypes(); this.ViewBag.BankAccounts = await bankAccountService.GetAllCompanyBankAccounts(); }
public async Task <IActionResult> Index() { var model = await paymentTypeService.GetAllCompanyPaymentTypes(); return(View(model)); }