// GET: MonthlyBudgetBoard/Create public async Task <IActionResult> Create() { var budgetBoards = await _budgetBoardService.GetBudgetBoards(); var boardList = new SelectList(budgetBoards, "BudgetBoardId", "BudgetBoardName"); ViewBag.BudgetBoard = boardList; return(View()); }
// GET: BudgetBoard public async Task <IActionResult> Index() { var budgetBoards = await _budgetBoardService.GetBudgetBoards(); return(View(budgetBoards)); }