public IActionResult Index(int?year) { var d = new DashboardRepository(_db); ViewBag.Capital = _account.CapitalGet(); return(View(d.Data(year))); }