Пример #1
0
        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();
        }
Пример #2
0
        public async Task <IActionResult> Index()
        {
            var model = await vatTypeService.GetAll();

            return(View(model));
        }