public async Task <IActionResult> Index(int?y) { int year = y ?? DateTime.Now.Year; ApplicationUser user = await applicationUserRepository.GetByID(GetLoggedUserId()); ViewBag.VacationBalance = user.VacationBalance; ViewBag.YearlyIncrement = user.YearlyIncrement; ViewBag.TotalRequestedVacationDays = await vacationRepository.GetUserTotalPersonalVacationDaysByYear(GetLoggedUserId(), year); ViewBag.Year = year; return(View(await vacationRepository.GetUserVacationByYear(GetLoggedUserId(), year))); }