public IActionResult BillsAndOutgoings(BillsAndOutgoingsVm viewModel) { var id = RouteData.Values["id"]; if (id == null) { return(RedirectToAction("Index", "MyAccounts")); } Guid guid = Guid.Parse(id.ToString()); ApplicationSessionState.CheckSessionStatus(id.ToString()); viewModel.EnabledPartialSave = _portalSettings.Features.EnablePartialSave && LoggedInUser.IsLoggedInUser; IncomeAndExpenditure incomeAndExpenditure = ApplicationSessionState.GetIncomeAndExpenditure(guid); if (incomeAndExpenditure == null) { return(View(viewModel)); } viewModel = _mapper.Map(incomeAndExpenditure, viewModel); string housingStatus = incomeAndExpenditure.HousingStatus; string employmentStatus = incomeAndExpenditure.EmploymentStatus; _gtmService.RaiseBudgetCalculatorIncomeEvent(viewModel, LoggedInUserId, employmentStatus, housingStatus, viewModel.IncomeSummary.Total); return(View(viewModel)); }