protected override VendorViewModel SetViewModelData(VendorViewModel viewModel) { var accountService = new AccountService(UnitOfWork); var businessId = User.Identity.GetBusinessId(); if (businessId == null) { return(viewModel); } viewModel.PaymentAccounts = accountService.GetPaymentAccounts((Guid)businessId).Select(o => new SelectListItem { Text = o.Name, Value = o.Id.ToString() }).ToList(); viewModel.ExpenseAccounts = accountService.GetIncomeAccounts((Guid)businessId).Select(o => new SelectListItem { Text = o.Name, Value = o.Id.ToString() }).ToList(); viewModel.Countries = CountryHelper.CountryList().Select(o => new SelectListItem { Text = o.Name, Value = o.Code }).ToList(); return(viewModel); }