public async Task <ActionResult> Create() { ChartOfAccount accountType = new ChartOfAccount() { IP = UserInfo.IP(), Agent = UserInfo.Agent(), UserID = UserHelperInfo.GetUserId() }; ViewBag.AccountTypesList = await accountTypeService.GetAccountTypesAsync(); return(View(accountType)); }
// GET: Administrator/AccountType public async Task <ActionResult> Index() { return(View(await _service.GetAccountTypesAsync())); }