diff --git a/Dfe.PrepareTransfers.Web/Pages/TaskList/Decision/RecordDecision.cshtml.cs b/Dfe.PrepareTransfers.Web/Pages/TaskList/Decision/RecordDecision.cshtml.cs index 55d741f7f..728635ec3 100644 --- a/Dfe.PrepareTransfers.Web/Pages/TaskList/Decision/RecordDecision.cshtml.cs +++ b/Dfe.PrepareTransfers.Web/Pages/TaskList/Decision/RecordDecision.cshtml.cs @@ -28,17 +28,17 @@ public RecordDecision( PropagateBackLinkOverride = false; } - [BindProperty] - [Required(ErrorMessage = "Select a decision")] - public AdvisoryBoardDecisions? AdvisoryBoardDecision { get; set; } + [BindProperty] + [Required(ErrorMessage = "Select a decision")] + public AdvisoryBoardDecisions? AdvisoryBoardDecision { get; set; } - public async Task OnGet(int urn) - { + public async Task OnGet(int urn) + { AdvisoryBoardDecision sessionDecision = GetDecisionFromSession(urn); if (sessionDecision.Decision == null) { - RepositoryResult savedDecision = await _decisionRepository.Get(urn); + RepositoryResult savedDecision = await _decisionRepository.Get(Id); SetDecisionInSession(urn, savedDecision?.Result); AdvisoryBoardDecision = savedDecision?.Result?.Decision; }